Skip to content

Commit

Permalink
Ignore but not drop NOQUEUE events while aggregating
Browse files Browse the repository at this point in the history
  • Loading branch information
whyscream committed Feb 2, 2024
1 parent e0e8cf5 commit 2ed4c40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 51-filter-postfix-aggregate.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ filter {
if ![postfix_queueid] {
drop {}
} else if [postfix_queueid] == "NOQUEUE" {
drop {}
# Ignore events where the queueid is NOQUEUE, they can't be aggregated.
# The empty mutate filter serves as a 'noop',
mutate {}
} else if [program] == "postfix/qmgr" and [postfix_from] {
aggregate {
task_id => "%{postfix_queueid}"
Expand Down

0 comments on commit 2ed4c40

Please sign in to comment.