I am trying to setup filebeats to monitor some docker containers - I am using autodiscover, but I don't want to be logging anything from my stack (Elastic, Kibana, Filebeats itself). I have tried to use drop_events but it's just not working:
First observation If you don't want to keep logs from your ELK stack then why are you using the not basically that will drop everything except for the stack logs.
Perhaps I am missing something.
Also if you want that to be an or you need use an or
I don't believe your syntax is correct it is very specific.
Also, the drop only work on fields that already exist in the message, not once it will be created if you're using a module or a pipeline.
The container names or images I suspect should be available for you to use but you need to use the correct field names and values.
What I would do is write a single "positive" logic drop and get that to work.. then add with the or
No apologies you're right the .not in the first example is a typo from where I copy pasta'd the httpd version of the config. I'll amend that now (the actual config being used didn't have that not and I have double checked / tested that this morning and I'm still seeing logs from KIbana etc) .
As far as I can work out though the httpd config should be dropping everything but traffic from the httpd container (which it isn't).
The container name in this instance is correct as the container is called httpd so I'm not sure I understand your point in regards to the field name : value as that should match what I am trying in this instance.
Apologies for any syntax issues there - The top two / originally posted configs had been modelled on those in this post which made use of the - as mine does.
You can see that the image / container names should be matching (or not matching for the httpd rule) but I'm getting all logs regardless of the config used.
Moving the processors to the top level has fixed it. I had initially moved the processors inside the autodiscover after seeing previous posts with that (and no comments to suggest it was wrong). Lesson learnt there and thanks for your help - To help anyone who has this issue the full config used is:
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.