Created
February 19, 2016 01:54
-
-
Save teebu/e34938271ca5dd579850 to your computer and use it in GitHub Desktop.
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
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