Hi all.
I have this log:
Oct 19 13:19:22 prod-mail amavis[2815]: (02815-17) Blocked SPAM {DiscardedInternal}, LOCAL [63.240.118.168]:41519 [63.240.118.168] some@mail.be -> some2@mail.ru, Queue-ID: 621CD1E07E7, Message-ID: 2E2B9DCEC5113C0FD3D69F220610E0C5@cld.be, mail_id: sRABc2HPCipB, Hits: 14.881, size: 53682, 2436 ms
And this config:
if [program] =~ "amavis" {
grok {
match => { "message" => "([0-9-]+)(?[A-z 0-9 -]+){[A-z]+}, %{GREEDYDATA}LOCAL (?[[]0-9.: a-f]+)<%{EMAIL:from}> -> <%{EMAIL:to}>,
Queue-ID: %{NOTSPACE:Queue-ID},( | Message-ID: <%{NOTSPACE:Message-ID}>, )mail_id: %{NOTSPACE:mail_id}, Hits: %{NUMBER:Hits}, %{GREEDYDATA:short_message}" }
overwrite => [ "short_message" ]
}
}
So if value in field "from" exists it parsed OK , but if in log we have nothing in field "from" such <> we get _grokparsefailure . How can resolved this problem ? Thx