Skip to content

Conversation

ianic
Copy link
Contributor

@ianic ianic commented Jan 15, 2018

This fixes issue #45.

Default Go log/syslog is sending syslog messages in that format.
That is not according to the standard:
"The TIMESTAMP field is the local time and is in the format of "Mmm dd hh:mm:ss" (without the quote marks)"
But it is necessery if we want to parse lines sent by log/syslog.

ianic added 2 commits January 15, 2018 14:46
Default Go log/syslog is sending syslog messages in that format:
https://github.com/golang/go/blob/9745eed4fd4160cfbf55e9dbbfa99aca5563b392/src/log/syslog/syslog.go#L294

That is not according to the standard:
"The TIMESTAMP field is the local time and is in the format of "Mmm dd hh:mm:ss" (without the quote marks)"
(https://tools.ietf.org/html/rfc3164#section-5.3)

But it is necessery if we want to parse lines sent by log/syslog.

One small fix, time.Stamp is same as those two formats:
-               "Jan 02 15:04:05",
-               "Jan  2 15:04:05",
+               time.Stamp,
@mcuadros mcuadros merged commit a127d82 into mcuadros:master Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants