If condition statement in Logstash


(Ramesh Pendela) #1

Continuing the discussion from Logstash or condition in if statement:

@magnusbaeck, I have a DeviceName filed in my logs and I am trying to add a tag based on below condition but not seeing any tags added to the logs

`  if [DeviceName] == "%austinFW1" or [DeviceName] == "%corpFW1"  {
    mutate {
        add_tag => ["Austin-Firewalls"]
    }  
    
}`

What might be the cause?


(system) #2

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