Skip to content

Commit 5b20614

Browse files
committed
Update syslog.conf
1 parent 2933497 commit 5b20614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes/syslog-pri/syslog.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ filter {
1414
grok {
1515
match => { "message" => "<%{POSINT:syslog_pri}>%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
1616
add_field => [ "received_at", "%{@timestamp}" ]
17-
add_field => [ "received_from", "%{@source_host}" ]
17+
add_field => [ "received_from", "%{host}" ]
1818
}
1919
syslog_pri { }
2020
date {
21-
match => { "syslog_timestamp" => [ "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ] }
21+
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
2222
}
2323
if !("_grokparsefailure" in [tags]) {
2424
mutate {

0 commit comments

Comments
 (0)