Skip to content

Add more compiled regex in the parser #45

@reneelee0807

Description

@reneelee0807
  • /^(.+>)$/ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions