"test_consumer_grup" auto_offset_reset => "latest" consumer_threads =>..._logstash input kafka">
赞
踩
kafka.conf:
input{
- input{
- kafka{
- bootstrap_servers =>["10.121.69.2:9092","数组,可以写多个"]
- group_id => "test_consumer_grup"
- auto_offset_reset => "latest"
- consumer_threads => 5
- decorate_events => true
- topics => ["kafka_logstash","数组,可以写多个"]
- type => "zhang"
- }
- }
- output {
- elasticsearch {
- hosts => ["10.121.69.1:9200","数组,可以写多个"]
- index => "logstash-%{[可以是字段里面的名字]}-%{+YYYY.MM.dd}"
- }
- }
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。