How to get as Docker HostIP

Hi All

I am using filebeat Docker. we have AWS Infrastructure this filebeat container is running on our 20 ec2 machines. The problem is when something goes wron on any machines it's being hard to debug which machine went wrong. Since is Docker container Hostname not the EC2-machine IP adddress. I tried to use my container in network mode as Host. But seems not very useful. I tried with Enviroinment variables but seems not working . Is there a better i can get as my ec2 machine IP instead of Docker Container Hostname. I appreciate your help. I really need this solution. TIA

You could add a custom fields in your configuration to help identify them?

  myfield: "abc?"

or with an environment variables

  myfield: ${NAME:beats}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.