如何通过udp协议将filebeat输出发送到logstash



是否有任何方法可以通过udp协议将数据从filebeat发送到logstash,我将logstash配置为从udp接收数据,我可以对filebeat执行同样的操作吗。谢谢

Q:有没有办法通过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输出。但是,您可以使用Filebeat-yml文件中提供的logstash输出模块将数据发送到logstash。

如果你非常确定只使用UDP,你可以使用nxlog而不是forget,它支持UDP输出。对于使用源代码本身的正则表达式的模式和过滤器,它也比Filebeat更灵活。

希望这能有所帮助!

最新更新