Overwrite message with the actual logged message.
This commit is contained in:
Alexander Neu 2016-10-13 20:40:22 +02:00 committed by Thomas VIAL
parent 08dc28e304
commit 50a3418d7f
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
filter {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
overwrite => [ "message" ]
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:message}" }
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
add_field => [ "program", "%{syslog_program}" ]