If else condition with logstash filter

Hi Folks,

I am trying to achive certain conditions with logstash and wondering \if - if-else statement or validation is possible in Logstash filter?

I have below messages in json and parsing DMARC logs with logstash. I wanted to achieve

if auth_spf == pass then insert Tag DMARC aligned True
OR
if auth_dkim == pass then insert Tag DMARC aligned True
OR
if auth_spf || auth_dkim == pass then insert Tag DMARC aligned True

Can someone please help?

Conditionals can be used to control which filter runs but not be used within filters.

Hmm..so where can I use those if-else conditions?

In the Logstash config file.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.