Skip to content

Instantly share code, notes, and snippets.

@supernomad
Created August 16, 2017 01:15
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 supernomad/b6eb2fe7eb8e05365630055d7b8400c6 to your computer and use it in GitHub Desktop.
Save supernomad/b6eb2fe7eb8e05365630055d7b8400c6 to your computer and use it in GitHub Desktop.
input {
redis {
host => "127.0.0.1"
port => "6379"
db => 0
key => "test_key"
threads => 48
data_type => "list"
batch_count => 250
}
}
filter {
metrics {
meter => [
"events",
"%{type}"
]
add_tag => "metric"
add_field => {
"useful" => "fields"
"we" => "need"
"and" => "want"
}
flush_interval => 5
}
if "metric" in [tags] {
mutate {
replace => {
"type" => "metric"
}
remove_field => [
"message"
]
}
}
}
output {
elasticsearch {
hosts => [{all 5 of the client only nodes in the cluster}]
index => "testing_index"
timeout => 60
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment