docker logs are not in the default folder "/var/lib/docker/containers//-json.log" but in "/home/var/docker/data/containers//-json.log"
Filebeat works just fine and pushes docker logs into elasticsearch
Problem:
"docker.container.id" always says "containers" instead of the actual ids
This leads to "add_docker_metadata:" errors, since the container "containers" doesn't exist
It's as if, when trying to get the id of the containers, it's trying to get the 5th item in the path, but since in my case it's the 6th, it just gets "containers" (the actual 5th item in the path).
Is this hardcoded somewhere or something? Any idea how to solve this?
alright, my bad. Checking the source more closely, you can actually inject parameters for this using not sourceindex but match_source_index, like you can change the host.
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.