![](/img/trans.png)
[英]Can filebeat convert log lines output to json without logstash in pipeline?
[英]how can i send filebeat output to logstash via udp protocol?
有什么方法可以通過 udp 協議將數據從 filebeat 發送到 logstash,我將 logstash 配置為從 udp 接收數據,我可以對 filebeat 做同樣的事情嗎? 謝謝
問:有什么方法可以通過 udp 協議將數據從 filebeat 發送到 logstash?
不,Filebeat 無法通過 UDP 發送事件。 以下是所有可用的 Filebeat 輸出:
https://www.elastic.co/guide/en/beats/filebeat/current/configuring-output.html
Filebeat 只能讀取UDP 上的事件,如下所述:
https://www.elastic.co/guide/en/beats/filebeat/master/filebeat-input-udp.html
此外,以下是對相同問題的一些答案,它們得出相同的結果:
https://discuss.elastic.co/t/could-filebeat-use-udp-to-send-data-to-logstash/113527
https://discuss.elastic.co/t/how-to-configure-filebeat-to-send-logs-over-udp-to-graylog/130822
我希望我能幫助你。
Filebeat 不支持 UDP output。 但是,您可以使用 Filebeat yml 文件中的 logstash output 模塊將數據發送到 logstash。
如果您非常確定只使用 UDP,您可以使用 nxlog 代替忘記,它支持 UDP output。 對於帶有來自源本身的正則表達式的模式和過濾器,它也比 Filebeat 更靈活。
希望這可以幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.