![](/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.