mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
a97c8075ee
Fixes #340 - amavis_duration is now a number and not a string anymore
24 lines
613 B
Plaintext
24 lines
613 B
Plaintext
filter {
|
|
# grok log lines by program name
|
|
if [program] == 'amavis' {
|
|
grok {
|
|
patterns_dir => "/etc/logstash/patterns.d"
|
|
match => [ "message", "%{AMAVIS}" ]
|
|
tag_on_failure => [ "_grok_amavis_nomatch" ]
|
|
add_tag => [ "_grok_amavis_success" ]
|
|
}
|
|
}
|
|
|
|
# Do some data type conversions
|
|
mutate {
|
|
convert => [
|
|
# list of integer fields
|
|
"amavis_size", "integer",
|
|
"amavis_duration", "integer",
|
|
|
|
# list of float fields
|
|
"amavis_hits", "float"
|
|
]
|
|
}
|
|
}
|