But with my configuration, only changing the image I have some errors.
2020-05-13T14:26:25.084Z ERROR [kubernetes] add_kubernetes_metadata/matchers.go:91 Error extracting container id - source value does not contain matcher's logs_path '/var/lib/docker/containers/'.
Take into account that filebeat runs in the host, so it may not have access to the files in the container (like these /var/log/nginx/*.log). What one usually does is to use a container input, that collects logs from stdout/stderr.
You have some examples in the documentation: https://www.elastic.co/guide/en/beats/filebeat/7.7/configuration-autodiscover.html
I'm having a similar issue. It seems that the error is coming from that the default logs_path is picked up (rather than the configured one).
Notice how the error mentions /var/lib/docker/containers,
but the matcher's logs_path is /var/log/containers
This default can be found in the code here
Well, I'm running into the same problem. It seems that the matcher logs_path is not picked up, only the default value (/var/lib/docker/containers)
My version of Filebeat is 7.7.1
Regards
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.