This filter helps you to base64 decode/encode your fields.
base64 {
field => "blob"
}
base64 {
field => "blob"
action => "encode"
}
This filter will by default tag your event with _base64failure
in-case the field fails to encode/decode. This usually happens when you are trying to decode a broken or non-base64 message or encode something else than a string. You can override the tag set like this:
base64 {
field => "blob"
tag_on_failure => ["my_fail_tag"]
}
-
action
The type of base64 transformation (
decode
orencode
). Defaults todecode
. -
field
The field to encode/decode in-place. Defaults to
message
. -
tag_on_failure
Append values to the
tags
field on encode/decode failure. Defaults to["_base64failure"]
.
You can read about all changes in CHANGELOG.md.
Need help? Try #logstash on freenode IRC or the Logstash discussion forum.
Get started by reading BUILD.md.