Created
March 19, 2015 13:47
-
-
Save gambrell/98cc955fb9cf889a54aa to your computer and use it in GitHub Desktop.
Logstash filter to remove embedded NULL characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logstash filter to remove embedded NULL characters | |
filter { | |
mutate { | |
gsub => [ | |
# Replace all NULL characters empty string. Do this to the message field first which will apply to all fields instead of specifying individual fields. | |
"message", "[\u0000]", "" | |
] | |
} | |
# Add your grok here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice! Thanks