File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,13 @@ filter {
168
168
tag_on_failure => [ "_grok_postfix_postmap_nomatch" ]
169
169
add_tag => [ "_grok_postfix_success" ]
170
170
}
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
+ }
171
178
} else if [program] =~ /^postfix.*/ {
172
179
mutate {
173
180
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}
138
138
POSTFIX_ERROR %{POSTFIX_ERROR_ANY}
139
139
POSTFIX_POSTSUPER %{POSTFIX_POSTSUPER_ACTION}|%{POSTFIX_POSTSUPER_SUMMARY}
140
140
POSTFIX_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