Beats processors: else if?

In https://www.elastic.co/guide/en/beats/filebeat/current/defining-processors.html we can see that processors have "if then else", but no word if it supports the "if then else if then else"
I need to do multiple checks (like setting up a field for environment based on namespace and pod name) and i will have to do many "if then else ( if then else ( if then else))"

So is there any else if or elif support?

Thanks
Daniel

You can nest the statements, but there is no elif.

processors:
- if:
    equals.query: "www.google.com"
  then: 
    add_tags:
      tags: google
  else:
    if:
      equals.query: "www.yahoo.com"
    then:
      drop_event: ~

yep, that is what i'm doing right now, but with 4 levels of ifs right now, it feels so wrong!

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