Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Can rfc3164 (BSD syslog) parser support custom timestamp format? #36

Open
KiVirgil opened this issue Jul 16, 2020 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@KiVirgil
Copy link

rfc3164 parser can parse log like logStr = "<134>Jul 16 02:15:13 an 200050021 id=OS time="2020-7-16 02:15:13" timezone=GMT(+0000)", but can't parse log like
logStr = "<134>Jul 16 2020 02:15:13 an 200050021 id=OS time="2020-7-16 02:15:13" timezone=GMT(+0000)". It will cause error: expecting a Stamp timestamp [col 14].

@russorat
Copy link

russorat commented Jul 17, 2020

I don't see an example of that type of log parsing in the test cases file. Would you be willing to add a test case and open a pr?

@russorat russorat added the enhancement New feature or request label Jul 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants