从Logstash输出UDP [英] Outputting UDP From Logstash

查看:902
本文介绍了从Logstash输出UDP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些日志,我想使用logstash进行整理.这将是logstash代理,作为源服务器到中央日志记录服务器上的托运人.我想使用从发件人到中央日志的UDP,以便在记录器发生故障时可以完全隔离(我不希望以任何方式影响70个奇数生产服务器).我可以看到使用udp进行传输的唯一方法是使用syslog格式输出.有谁知道我可以从logstash本地输出UDP的方法吗? (文档提示了这一点,但是我必须在TCP端缺少某些内容吗?)

I have some logs that I want to use logstash to collate . It will be the logstash agent as a shipper on the source servers going to a central logging server . I want to use UDP from the shipper to the central log so I can be totally isolated should the logger fail ( I dont want the 70 odd production servers affected in any way ) . The only way I can see of using udp for the transport is to output using syslog format . Does anyone know of a way I can output UDP natively from logstash ? ( The docs hint at it but I must be missing something on the TCP side ?)

推荐答案

您可以使用UDP输出插件本地输出UDP

You can output UDP natively using the UDP output plugin

通过设置编解码器字段,您可以选择所需的任何输出格式(例如JSON)

By setting the codec field, you can choose whatever output format you like (e.g. JSON)

这篇关于从Logstash输出UDP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆