Created
August 17, 2016 12:29
-
-
Save jinleileiking/31fc7330dbf7a35f8c11eed399817d8c 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 { | |
kafka { | |
zk_connect => "10.4.22.121:2181,10.4.22.122:2181,10.4.22.123:2181" | |
group_id => "appgroup" | |
topic_id => "applog" | |
#codec => plain | |
consumer_threads => 64 | |
decorate_events => true | |
reset_beginning => false | |
queue_size => 2000 | |
#reset_beginning => true | |
#auto_offset_reset => smallest | |
} | |
} | |
filter { | |
metrics { | |
meter => "events" | |
add_tag => "metric" | |
} | |
} | |
output{ | |
if "metric" in [tags] { | |
stdout { | |
codec => line { | |
format => "rate: %{[events][rate_1m]}" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment