logstash 采集kafka日志的文件配置xx.conf

input {
  kafka {
    bootstrap_servers => "localhost:9092"
    topics => ["goods_mylog"]
  }
}
output {
    stdout { codec => rubydebug }
    elasticsearch {
       hosts => ["localhost:9200","localhost:9201"]
       index => "goods_mylog"
    }
}
发布了64 篇原创文章 · 获赞 35 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/weixin_42047790/article/details/90692220