File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,13 @@ filter {
168168 tag_on_failure => [ "_grok_postfix_postmap_nomatch" ]
169169 add_tag => [ "_grok_postfix_success" ]
170170 }
171+ } else if [program] =~ /^postfix.*\/postfix-script$/ {
172+ grok {
173+ patterns_dir => "/etc/logstash/patterns.d"
174+ match => [ "message", "^%{POSTFIX_SCRIPT}$" ]
175+ tag_on_failure => [ "_grok_postfix_script_nomatch" ]
176+ add_tag => [ "_grok_postfix_success" ]
177+ }
171178 } else if [program] =~ /^postfix.*/ {
172179 mutate {
173180 add_tag => [ "_grok_postfix_program_nomatch" ]
Original file line number Diff line number Diff line change @@ -138,3 +138,4 @@ POSTFIX_VIRTUAL %{POSTFIX_SMTP_DELIVERY}
138138POSTFIX_ERROR %{POSTFIX_ERROR_ANY}
139139POSTFIX_POSTSUPER %{POSTFIX_POSTSUPER_ACTION}|%{POSTFIX_POSTSUPER_SUMMARY}
140140POSTFIX_POSTMAP %{POSTFIX_WARNING}
141+ POSTFIX_SCRIPT %{POSTFIX_WARNING}
Original file line number Diff line number Diff line change 1+ pattern : ^%{POSTFIX_SCRIPT}$
2+ data : " warning: symlink leaves directory: /etc/postfix/./makedefs.out"
3+ results :
4+ postfix_message_level : warning
5+ postfix_message : " symlink leaves directory: /etc/postfix/./makedefs.out"
You can’t perform that action at this time.
0 commit comments