Incoming syslog messages can be parsed by the zensyslog service. This allows
syslogs to be either kept or dropped, and allows administrators to set event
fields without needing to write event transforms.
To view your configured parsers, navigate to ADVANCED > Settings > Events
and scroll down to the Syslog Parsers field.
Parser format
Each syslog parser is made of three parts, written as a Python dictionary: a description,
an expression, and a Boolean "keep" value.
"description"
The "description" field is used to identify and explain the parser. It has no
effect on parser behavior.
"expr"
The "expr" or "expression" field is the Python-flavored regular expression
(regex) used to match an incoming syslog message. You can use
[named capture groups]https://www.regular-expressions.info/named.html){.external-link}
to set event fields on the generated event.
"keep"
The "keep" field accepts a value of either True or False. Use True to
process syslog messages into events. Use False to drop the syslog message
without any further event processing.
The Syslog Parsers field contains a Python list of the configured parser
dictionaries. A sample list of parser dictionaries might look like the following: