當(dāng)前位置:
首頁 >
filebeat6.2.3收集多个日志源 多个topic输出
發(fā)布時(shí)間:2025/7/14
41
豆豆
生活随笔
收集整理的這篇文章主要介紹了
filebeat6.2.3收集多个日志源 多个topic输出
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
下載
wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.2.3-linux-x86_64.tar.gz解壓
tar -zxvf filebeat-6.2.3-linux-x86_64.tar.gz配置filebeat.yml
filebeat.prospectors: - type: logenabled: truepaths:- /var/log/mylog/test1.logfields:log_topics: test1 - type: logenabled: truepaths:- /var/log/mylog/test2.logfields:log_topics: test2 output.kafka:enabled: truehosts: ["10.112.101.90:9092"]topic: '%{[fields][log_topics]}'運(yùn)行filebeat
./filebeat -e -c filebeat.yml轉(zhuǎn)載于:https://www.cnblogs.com/duanxz/archive/2012/07/24/2606354.html
總結(jié)
以上是生活随笔為你收集整理的filebeat6.2.3收集多个日志源 多个topic输出的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: RichTextBox粘贴两次以及去掉粘
- 下一篇: LINQ学习(六):OrderBy/Gr