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

Add more compiled regex in the parser #45

Open
reneelee0807 opened this issue Oct 31, 2019 · 0 comments
Open

Add more compiled regex in the parser #45

reneelee0807 opened this issue Oct 31, 2019 · 0 comments

Comments

@reneelee0807
Copy link

  • /^(.+>)$/ can fix logs that have a space after the pri. Eg "<123> Jan 1 ..." ----> "<123>Jan 1 ..."

  • /^(<\d+>\d\d\d\d)$/ can fix logs that have a year as start of date. Eg "<123>2001 Jan 1..." ----> <123>2001 Jan 1..."

And add something like /^\S+[\S+]:.*$/ to passing the syslog appName, pid and message

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

1 participant