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}"
  }
}

}

你可能感兴趣的:(logstash)