Created
January 14, 2013 18:13
-
-
Save feylya/4532036 to your computer and use it in GitHub Desktop.
Replace empty variable in Logstash
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
grep { | |
match => [ "some_variable", ".*" ] | |
drop => false | |
negate => true | |
add_field => [ "some_variable", "0" ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment