"test_consumer_grup" auto_offset_reset => "latest" consumer_threads =>..._logstash input kafka">
当前位置:   article > 正文

logstash-input-kafka_logstash input kafka

logstash input kafka

kafka.conf:

input{

  1. input{
  2. kafka{
  3. bootstrap_servers =>["10.121.69.2:9092","数组,可以写多个"]
  4. group_id => "test_consumer_grup"
  5. auto_offset_reset => "latest"
  6. consumer_threads => 5
  7. decorate_events => true
  8. topics => ["kafka_logstash","数组,可以写多个"]
  9. type => "zhang"
  10. }
  11. }
  12. output {
  13. elasticsearch {
  14. hosts => ["10.121.69.1:9200","数组,可以写多个"]
  15. index => "logstash-%{[可以是字段里面的名字]}-%{+YYYY.MM.dd}"
  16. }
  17. }

}

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/580417
推荐阅读
相关标签
  

闽ICP备14008679号