How to get beat.name(filebeat) 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 beat.name 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 beat.name 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?

fields:
  myfield: "abc?"

or with an environment variables

field:
  myfield: ${NAME:beats}

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