I'm trying to set up the AutoDiscover component in the Filebeat.yml.
I'm using it in order to take logs from specific containers which generated by a specific Docker image.
When I'm working with the "filebeat.autodiscover" should I need to add the "filebeat.prospectors" block too?
Currently, this is my configuration without filebeat.prospectors:
As you can see, because of the "filebeat.prospectors" has been omitted, I had to add the processors, fields & multiline options under the "filebeat.autodiscover". Is it the right thing to do?
Not at the moment, docker prospector is dumb, it only accepts container ids as it's what it uses to search for the logs. Autodiscover is in place to do what you want.
Also I forgot to mention, you are using equals condition, but you have all existing conditions available, just in case you want to match only some part of the image, for instance.
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.