Standard syslog input does not use the timestamp
Posted: Mon Oct 14, 2024 12:31 pm
Hi,
When we use the non-SSL (5044), timestamp does not seem to be considered.
If we use the SSL/TLS, it works fine:
if [type] == 'syslog_tls' {
grok {
match => { "message" => "<%{POSINT:priority}>%{SYSLOGTIMESTAMP:timestamp} %{SYSLOGHOST:hostname} %{DATA:program}(?:\[%{POSINT:pid}\])?: %{GREEDYDATA:message}" }
overwrite => [ 'message' ]
}
syslog_pri { }
mutate {
replace => [ 'type', 'syslog' ]
}
}
Is there a way to ensure the standard syslog (5044) gets the good timestamp?
NLS is on UTC time (latest version + ubuntu 24.04 LTS).
Some servers have EDT/GMT etc..
Thanks!
When we use the non-SSL (5044), timestamp does not seem to be considered.
If we use the SSL/TLS, it works fine:
if [type] == 'syslog_tls' {
grok {
match => { "message" => "<%{POSINT:priority}>%{SYSLOGTIMESTAMP:timestamp} %{SYSLOGHOST:hostname} %{DATA:program}(?:\[%{POSINT:pid}\])?: %{GREEDYDATA:message}" }
overwrite => [ 'message' ]
}
syslog_pri { }
mutate {
replace => [ 'type', 'syslog' ]
}
}
Is there a way to ensure the standard syslog (5044) gets the good timestamp?
NLS is on UTC time (latest version + ubuntu 24.04 LTS).
Some servers have EDT/GMT etc..
Thanks!