Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a base64 decoder to strings processor #4698

Closed
wants to merge 1 commit into from
Closed

Conversation

glinton
Copy link
Contributor

@glinton glinton commented Sep 15, 2018

Resolves #4697

Add a base64 decoder processor to the strings processor plugin. Giving the ability to process data contained in a base64 encoded field. (Useful for working with google core iot)

@davidgs
Copy link
Contributor

davidgs commented Sep 15, 2018

Brilliant! Thanks!

@@ -16,6 +17,7 @@ type Strings struct {
TrimRight []converter `toml:"trim_right"`
TrimPrefix []converter `toml:"trim_prefix"`
TrimSuffix []converter `toml:"trim_suffix"`
Decode []converter `toml:"decode"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call it b64decode?

@danielnelson
Copy link
Contributor

We can reopen this if it still is needed.

@danielnelson danielnelson deleted the feature/4697 branch April 15, 2019 20:42
@cliffordvandyk
Copy link

It seems to be common practice (I have other examples than the original Google Core IOT) to send multiple IOT numeric payload fields combined into a single base64-encoded string. It would be useful to have methods to decode a base64 string, and then split the resulting (HEX) into multiple (InfluxDB-friendly) fields. Is there a reason why this feature request was apparently rejected? Can it be reopened?

@danielnelson
Copy link
Contributor

We could finalize this, can you comment over on the issue #4697

@cliffordvandyk
Copy link

Thanks, will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add base64 decoder processor
4 participants