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

View file

@ -1,6 +1,7 @@
filter { filter {
grok { 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_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ] add_field => [ "received_from", "%{host}" ]
add_field => [ "program", "%{syslog_program}" ] add_field => [ "program", "%{syslog_program}" ]