Skip to content

Instantly share code, notes, and snippets.

@feylya
Created January 14, 2013 18:13
Show Gist options
  • Save feylya/4532036 to your computer and use it in GitHub Desktop.
Save feylya/4532036 to your computer and use it in GitHub Desktop.
Replace empty variable in Logstash
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