Skip to content

Instantly share code, notes, and snippets.

@brianseeders
Created January 9, 2015 21:57
Show Gist options
  • Save brianseeders/91fb71c16bc5ca91fe79 to your computer and use it in GitHub Desktop.
Save brianseeders/91fb71c16bc5ca91fe79 to your computer and use it in GitHub Desktop.
PHP logstash pattern
PHPERROR \[%{PHPDATESTAMP:timestamp}\] PHP %{DATA:error_type}:(?:\s*)%{PHPMESSAGE:message}
PHPMESSAGE %{DATA:message_short} in %{UNIXPATH:path} on line %{POSINT:line_number}
PHPDATESTAMP %{MONTHDAY}[./-]%{MONTH}[./-]%{YEAR} %{TIME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment