mirror of
https://github.com/FAUSheppy/logstash-verify
synced 2025-12-06 08:21:35 +01:00
feat: basic test in container
This commit is contained in:
16
pipe/base.yml
Normal file
16
pipe/base.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user