Created
August 16, 2017 01:15
-
-
Save supernomad/b6eb2fe7eb8e05365630055d7b8400c6 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 => "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