Skip to content

Instantly share code, notes, and snippets.

@tomasdanjonsson
Created May 5, 2023 21:04
Show Gist options
  • Select an option

  • Save tomasdanjonsson/0a1040619b226ebdfd4c5b3b7868914d to your computer and use it in GitHub Desktop.

Select an option

Save tomasdanjonsson/0a1040619b226ebdfd4c5b3b7868914d to your computer and use it in GitHub Desktop.
Grok Expression for syslog
<%{POSINT:priority}>%{SPACE}%{SYSLOGTIMESTAMP:timestamp}%{SPACE}%{SYSLOGHOST:hostname}%{SPACE}%{DATA:application}\[%{POSINT:pid}\]:%{SPACE}%{GREEDYDATA:message}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment