mirror of
https://github.com/FAUSheppy/logstash-verify
synced 2025-12-06 08:21:35 +01:00
17 lines
553 B
YAML
17 lines
553 B
YAML
filter {
|
|
if [type] == "syslog" {
|
|
grok {
|
|
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
|
|
remove_field => ["message"]
|
|
}
|
|
date {
|
|
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
|
|
target => "@timestamp"
|
|
remove_field => ["syslog_timestamp"]
|
|
}
|
|
mutate {
|
|
remove_field => ["host"]
|
|
}
|
|
}
|
|
}
|