We are using Docker to deploy microservice. Every time when we run a new container. Its id will be changed. Default logs path looks like /var/lib/docker/containers/<container-id>/<container-id>-json.log. We are using the ELK stack for logs pipeline. filebeat read the logs through container-id or path.
Is there any way to use container-name rather than container-id or anything else to make it dynamic?
This is a good feature to have to make the docker deployment easy otherwise the inputs need to change after one container is down. Which is really a pain.
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.