All the logic for the processors can be found here
Also it is difficult to read your configurations it is much better if you surround them with the code formatting button found at the top of the editor </>
And when you say it is not working additional information like, is it failing at startup? do you still see the events in the logs? etc is helpful otherwise it is very hard to know what is not working.
If you look at the error messages it should point you to the lines, yml files are hard to debug, if you use an editor that does yml checking or an online yml checker like here that should help. In general the when and contains above looks ok to me but you may have bad yml / indentation there or elsewhere.
You can also post a few lines of the error and perhaps someone can help...
Yes yml is very specific. I use 2 spaces (don't mix in tabs) , the - which are items in a list take 2 spaces + 2 spaces for the sub items so it should look like this. I just made this work so it should work specifically how I have it laid out.
- type: dns
# Configure the ports where to listen for DNS traffic. You can disable
# the DNS protocol by commenting out the list of ports.
ports: [53]
processors:
- drop_event:
when:
or:
- contains:
dns.question.etld_plus_one: "yahoo.com"
- contains:
dns.question.etld_plus_one: "google.com"
EDIT : Removed 2nd example as the syntax was not correct, my error.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.