-
Notifications
You must be signed in to change notification settings - Fork 239
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
loki.source.syslog rfc3164 - timestamp not parsed #2287
Comments
The behaviour is the same for tcp and same rfc3154 from a different device. Live Debugging Alloy loki.process after loki.source.syslog:
tcpdump:
This device offers the possibility to send some logs in parallel to another syslog receiver using the rfc5424.
For me it seems to be a parsing issue of the timestamp in rfc3164. I had a look at the rfc3164 and for me the timestamp of my applicating should be in the list of valid timestamps.
|
Hello, i tried to replicate the issue and it looks like it is parsing the timestamp for whatever reason as 1754. You should be able to replicate it ussing "logger"
|
It looks like the fact that loki handles syslog in this way was known and handled in loki by supporting 0-year timestamps in parsing. However, there is also an option in the go-syslog library's parser used by loki (alloy embeds this implementation) to use the current year in the state machine options. I'm not certain why that wasn't implemented in loki, but I can take a look. |
What's wrong?
Hello,
this is my log entry on the local /var/log/messages of the device:
Sun Dec 15 23:15:06 2024 authpriv.info dropbear[13472]: Child connection from 192.168.178.10:62593
this is the tcpdump
and this is the live_debugging of a loki.process. As you can see the incoming timestamp has 0000 as year:
this is the loki.source.syslog which is in front of the loki.process. loki.process is for live_debugging purposes.
Steps to reproduce
try to parse the log line / use the log line from tcpdump and parse timestamp
System information
Linux ubiquiti 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64 GNU/Linux
Software version
Grafana Alloy 1.5.1
Configuration
Logs
The text was updated successfully, but these errors were encountered: