Skip to content
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

Fixed year in time makes wrong data processing from past years #6

Open
ferrerogonzalo opened this issue Jan 5, 2017 · 2 comments
Open

Comments

@ferrerogonzalo
Copy link

I had several trouble processing data from past year (2016) when running in 2017. I have commented the line 83 time.setYear(new Date().getFullYear()) // fix year to now in index.js

From this perspective the 'year setting' is wrong because it has nothing to do with the record you are processing.

Btw I am processing data from Juniper NAT Syslog.

@meschbach
Copy link
Contributor

Do you have a sample log entry so I can build a test?

@gervasiocaj
Copy link

According to the Syslog RFC, this is the intended behaviour.

The TIMESTAMP described in RFC 3164 offers less precision than the
timestamp specified in this document. It also lacks the year and
time zone information. If a message formatted according to this
document needs to be reformatted to be in RFC 3164 format, it is
suggested that the originator's local time zone be used, and the time
zone information and the year be dropped. If an RFC 3164 formatted
message is received and must be transformed to be compliant to this
document, the current year should be added and the time zone of the
relay or collector MAY be used.

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

No branches or pull requests

3 participants