-
-
Save pa-jberanek/c49e6ea20f4b99bdda52d89808affc73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"filebeat-6.2.3-system-syslog-pipeline": { | |
"description": "Pipeline for parsing Syslog messages.", | |
"processors": [ | |
{ | |
"grok": { | |
"ignore_missing": true, | |
"field": "message", | |
"patterns": [ | |
"""%{SYSLOGTIMESTAMP:system.syslog.timestamp} %{SYSLOGHOST:system.syslog.hostname} %{DATA:system.syslog.program}(?:\[%{POSINT:system.syslog.pid}\])?: %{GREEDYMULTILINE:system.syslog.message}""", | |
"%{SYSLOGTIMESTAMP:system.syslog.timestamp} %{GREEDYMULTILINE:system.syslog.message}" | |
], | |
"pattern_definitions": { | |
"GREEDYMULTILINE": "(.|\n)*" | |
} | |
} | |
}, | |
{ | |
"remove": { | |
"field": "message" | |
} | |
}, | |
{ | |
"date": { | |
"field": "system.syslog.timestamp", | |
"target_field": "@timestamp", | |
"formats": [ | |
"MMM d HH:mm:ss", | |
"MMM dd HH:mm:ss" | |
], | |
"ignore_failure": true | |
} | |
} | |
], | |
"on_failure": [ | |
{ | |
"set": { | |
"field": "error.message", | |
"value": "{{ _ingest.on_failure_message }}" | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment