Open rarrr opened 5 months ago
Thanks for opening an issue and doing some investigative work here!
I'm not super familiar with syslog, so any help here is appreciated. This is similar to the issue raised in #451; namely, our Loki components work with a line-oriented logic.
The unexpected EOF
error seems to come from the syslog-go package that we're using to parse streas; I'm not sure if this newline logic here is inherited there or it's something that we include as part of our code, I'll have to check.
But my question is, is there some way for the syslog stream to denote the end of messages so that it can be used instead of newlines?
I should have linked this RFC, Transmission of Syslog Messages over UDP https://www.rfc-editor.org/rfc/rfc5426 It states:
[3.1]One Message Per Datagram
Each syslog UDP datagram MUST contain only one syslog message, which
MAY be complete or truncated. The message MUST be formatted and
truncated according to [RFC 5424](https://www.rfc-editor.org/rfc/rfc5424) [[2](https://www.rfc-editor.org/rfc/rfc5426#ref-2)]. Additional data MUST NOT be
present in the datagram payload.
This issue has not had any activity in the past 30 days, so the needs-attention
label has been added to it.
If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue.
The needs-attention
label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity.
Thank you for your contributions!
Any updates or workarounds for this? i have the same issue.
I had to put syslog-ng in front of it and use that to convert the data into alloys version of RFC5424
switched to vector.dev now.
What's wrong?
When using UDP on the syslog source Alloy reports:
ts=2024-04-12T02:15:06.664708206Z level=warn msg="error parsing syslog stream" component_path=/ component_id=loki.source.syslog.syslog err="unexpected EOF"
edit: the RFC is 5424
A newline is not part of the RFC 5425 specSteps to reproduce
Using pfsense, setup syslog to forwarding to Alloy.
If I first forward the logs to a python proxy and add a \n to the end of the UDP, Alloy will accept them.
System information
Ubuntu x86
Software version
Grafana Alloy v1
Configuration
Logs