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?