logstash同步kafka到elasticsearc配置文件
#logstash同步kafka到elasticsearc配置文件
input { kafka { bootstrap_servers => ["192.168.11.72:9092"] consumer_threads => 5 decorate_events => true topics => ["example_01"] } } #filter { # grok { # match => {"message"=>"%{COMBINEDAPACHELOG}"} # } #} output { elasticsearch { hosts => ["192.168.11.72:9200"] index => "omd_cronlog" } }