Here is my scenario: I have 2 container of the same application running on 2 different server. On each server, I also have a filebeat (running inside a container) to harvest log (which is located on mounted volume) from the application container and then ship it to elasticsearch. I'm trying to configure Filebeat to add metadata about application container to differentiate log source following this link https://www.elastic.co/guide/en/beats/filebeat/7.5/add-docker-metadata.html but no luck.
Please help me. Thank you in advance.