Skip to content

Instantly share code, notes, and snippets.

@alappe
Last active December 26, 2015 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alappe/7100918 to your computer and use it in GitHub Desktop.
Save alappe/7100918 to your computer and use it in GitHub Desktop.
input {
redis {
data_type => 'list'
host => '127.0.0.1'
threads => 2
db => 6
key => 'logstash:bunyan'
type => 'bunyan'
}
}
filter {
if [response][a] =~ /Linux/ {
mutate {
add_field => ['os', 'Linux']
}
}
}
output {
elasticsearch {
embedded => false
host => "127.0.0.1"
cluster => "elasticsearch_nd"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment