Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-04-15 03:41
Flavor·PCRE2 (PHP)

/
^(\w{3} \d{2} \d{2}:\d{2}:\d{2}) ([a-z]+) ([\w\d\[\]]+): (.*)$
/
gm
Open regex in editor

Description

Capture the date, host, message type, and message from the patterns in the log file.

Submitted by Nicholas Tower