Im trying to run Packetbeat on a docker container and ship the metrics to ES. Since i have multiple docker containers running on same host, all these are logs are carrying the same shipper name (hostname). As a workaround, while generating the docker container we are giving the hostname for docker container.
Also we would like to have the metrics shipped to different indexes based on microservices running on container. Is there a way we can pass the environment variables to packetbeat.yml file.
Also can you suggest some best practices/effective ways for running packetbeat on docker.
Thanks in advance