-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for BSD style syslog messages RFC 3164 to syslog input #4593
Comments
Can you show your nginx config for sending over UDP? |
@danielnelson I setup nginx by manual at address http://nginx.org/en/docs/syslog.html
I watch tcpdump UDP and view that UDP packet push on lo interface. |
I believe the issue is that nginx outputs only in RFC 3164, but the syslog input only does RFC 5424 messages. There is an issue on go-syslog to add support: influxdata/go-syslog#15. In the meantime I think a workaround would be to use rsyslog to convert between formats. |
@danielnelson maybe an interesting fact or my mistake I'm not exactly sure but... after error ocuire I try to make custom message by logger from shell and no message pass in Influx. I guess that parsing goroutine ended and no more ready to receive UDP packet. Perhaps this is a mistake. |
I set up rsyslog to forward over UDP:
And then used the logger command from util-linux:
I did get the message, but also an error message:
Afterwards, I am unable to send to this socket. I think we just want to remove the deadline for the UDP socket altogether, I'll put together a pr. |
@vit1251 You should be able to craft a message directly now if you use the nightly builds. |
+1 for adding RFC 3164 style (UDP) syslog receiver to Telegraf. |
go-syslog now supports RFC 3164 as per influxdata/go-syslog#27 (merged feb 3) |
Relevant telegraf.conf:
=udp4://:6514
System info:
1.7.3
Steps to reproduce:
Expected behavior:
Message store in InfluxDB
Actual behavior:
Error in plugin [inputs.syslog]: read udp4 0.0.0.0:6514: i/o timeout
Additional info:
No idea.
The text was updated successfully, but these errors were encountered: