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

 

posted @ 2020-05-28 17:02  些许记忆  阅读(318)  评论(0编辑  收藏  举报