Skip to content

Instantly share code, notes, and snippets.

@teebu
Created February 19, 2016 01:54
Show Gist options
  • Save teebu/e34938271ca5dd579850 to your computer and use it in GitHub Desktop.
Save teebu/e34938271ca5dd579850 to your computer and use it in GitHub Desktop.
input {
redis {
host => "xxx.com"
tags => [ "keywords" ]
data_type => "list"
key => "keywords_list"
codec => json
db => 2
}
}
filter {
if "keywords" in tags {
mutate {
remove_field => ["message", "host", "@version", "@timestamp"]
}
}
}
output {
if "keywords" in tags {
stdout {codec => rubydebug }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment