Hello everyone
I try to started config logstash
Work config
filter {
# grok log lines by program name (listed alpabetically)
if [program] =~ /^postfix.*\/anvil$/ {
grok {
patterns_dir => "/etc/logstash/patterns.d"
match => [ "message", "^%{POSTFIX_ANVIL}$" ]
tag_on_failure => [ "_grok_postfix_anvil_nomatch" ]
add_tag => [ "_grok_postfix_success" ]
}
}
I can just add a block with postfix-new, but I don't want to complicate the config
i need add if [program] =~ /^postfix./anvil$/ or /^postfix-new./anvil$/
how can I get both values to be filtered. Tried adding quotes brackets but logstash won't start.
Thanks for help