Syslog
Synopsis
Parses syslog messages into structured objects containing priority, facility, severity, hostname, application name, process ID, and message content.
Schema
syslog:
- field: <ident>
- description: <text>
- if: <script>
- ignore_failure: <boolean>
- ignore_missing: <boolean>
- on_failure: <processor[]>
- on_success: <processor[]>
- tag: <string>
- target_field: <ident>
Configuration
Field | Required | Default | Description |
---|---|---|---|
field | Y | - | Field containing the syslog message |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
ignore_missing | N | false | If true , quietly exit if field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
target_field | N | log.syslog | Field to store the parsed syslog object |
Details
The processor supports:
- RFC 3164 (BSD-style) syslog messages
- RFC 5424 (modern format) syslog messages with structured data
- Common Event Format (CEF) messages
- Log Event Extended Format (LEEF) messages
warning
The field must contain a valid syslog message string that conforms to one of the supported formats. Invalid messages will cause the processor to fail unless ignore_failure
is set to true
.
Examples
Basic
Parsing a basic syslog message... |
|
extracts message components: |
|
Metadata
Parsing an RFC 5424 format message... |
|
includes the structured data: |
|
CEF
Parsing a Cisco Firepower CEF message... |
|
extracts the CEF data: |
|
Error Messages
Parsing the error level messages... |
|
correctly identifies the severity: |
|