Filebeat as Docker

I am using filebeat in a docker. I am getting logs sending to kibana working good. I want to my Docker Host Ip(EC2-instance) address rather than my container ip. I used fileds called beat.ip adrress seems my getting docker host(container ID) but not my ec2 ip address. How can i get my ec2 ip address than my docker container IP.

Using network mode host at container start should do the trick.

Hi Thnaks for your info. I used as Host mode on Docker compose file. Now i am missing the Container ID info. I am trying to write a script to get IP address of my Host.
Can i have any advise here please.

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