input {
kafka {
bootstrap_servers => "localhost:9092"
topics => ["goods_mylog"]
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
hosts => ["localhost:9200","localhost:9201"]
index => "goods_mylog"
}
}
logstash 采集kafka日志的文件配置xx.conf
猜你喜欢
转载自blog.csdn.net/weixin_42047790/article/details/90692220
今日推荐
周排行