Regular Expressions 101

Community Patterns

grok

0

Regular Expression
PCRE (PHP <7.3)

/
((?<syslog_pri>(^\<\d*\>))|(^(?<facility>[^\.]*)\.(?<severity>[^\s]*)))?\s*(?:%{SYSLOGTIMESTAMP:timestamp}|%{TIMESTAMP_ISO8601:timestamp}) %{SYSLOGHOST:iporhost}(?<messgae>.*)
/
g

Description

no description available

Submitted by anonymous - 8 years ago