Skip to content

Commit

Permalink
Add "queud for delivery"
Browse files Browse the repository at this point in the history
  • Loading branch information
widhalmt committed Sep 25, 2024
1 parent 6551af6 commit ebab3e3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions filter-60-detail.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
filter {

if [message] =~ /^delivered to command/ {
if [postfix][detail] =~ /^delivered to command/ {

grok {
match => ["[postfix][detail]","delivered to command:%{SPACE}%{GREEDYDATA:[postfix][delivered][command]}]"
}

} else if [postfix][detail] =~ /^\d\d\d / {

grok {
match => ["[postfix][detail]","delivered to command:%{SPACE}%{GREEDYDATA:[postfix][delivered][command]}"
match => ["[postfix][detail]","%{INT:[postfix][delivered][returncode]:string} %{DATA:[postfix][delivered][dsn]} <%{DATA:[postfix][delivered][sender]}> \[InternalId=%{INT:[postfix][delivered][internalid]}, Hostname=%{IPORHOST:[postfix][delivered][hostname]}\] %{INT:[postfix][bytes]:int} bytes in %{NUMBER:[postfix][seconds]:float}, %{NUMBER:[postfix][kbps]:float} KB/sec %{GREEDYDATA:[postfix][delivered][result]}\)"]
}

}

}

0 comments on commit ebab3e3

Please sign in to comment.