Instantly share code, notes, and snippets.

Embed
What would you like to do?
Logstash + JSON Codec + StatsD
input {
redis {
key => 'logstash:collect'
data_type => 'list'
codec => json
type => 'collect'
}
}
output {
statsd {
# Just throw this at the root for now. Sick of expanding graphite trees.
namespace => ""
sender => ""
# Tried with: increment, [increment] ... neither work. Seems that nothing is passed to statsd
# Tried with: "%{increment}" ... as expected, a concatenated list of arr entries is used as the counter name
increment => increment
}
}
{
"increment":[
"metric1",
"metric2"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment