{"action":"opened","issue":{"url":"https://api.github.com/repos/spujadas/elk-docker/issues/27","repository_url":"https://api.github.com/repos/spujadas/elk-docker","labels_url":"https://api.github.com/repos/spujadas/elk-docker/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/spujadas/elk-docker/issues/27/comments","events_url":"https://api.github.com/repos/spujadas/elk-docker/issues/27/events","html_url":"https://github.com/spujadas/elk-docker/issues/27","id":141863646,"number":27,"title":"Connecting custom container to elk","user":{"login":"mimmozzo","id":500552,"avatar_url":"https://avatars.githubusercontent.com/u/500552?v=3","gravatar_id":"","url":"https://api.github.com/users/mimmozzo","html_url":"https://github.com/mimmozzo","followers_url":"https://api.github.com/users/mimmozzo/followers","following_url":"https://api.github.com/users/mimmozzo/following{/other_user}","gists_url":"https://api.github.com/users/mimmozzo/gists{/gist_id}","starred_url":"https://api.github.com/users/mimmozzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mimmozzo/subscriptions","organizations_url":"https://api.github.com/users/mimmozzo/orgs","repos_url":"https://api.github.com/users/mimmozzo/repos","events_url":"https://api.github.com/users/mimmozzo/events{/privacy}","received_events_url":"https://api.github.com/users/mimmozzo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-18T13:18:58Z","updated_at":"2016-03-18T13:18:58Z","closed_at":null,"body":"Hi,\r\n\r\nfirst of all, thanks for your outstanding work. \r\nI am trying to connect my custom container to your ELK one to allow log collecting. In my custom container, all apps log to stdout, so I would like to simply pipe container logs into the ELK, without installing filebeat on the container itself.\r\nI've tried with this docker-compose file:\r\n\r\n```\r\nversion: '2'\r\nservices: \r\n    elk: \r\n        image: sebp/elk\r\n        ports:\r\n            - \"5601:5601\"\r\n            - \"9200:9200\"\r\n            - \"5044:5044\"\r\n            - \"5000:5000\"\r\n    tomcat-ad: \r\n        image: dr/my-tomcat\r\n        ports: \r\n            - \"8080:8080\"\r\n        links: \r\n            - elk\r\n        logging: \r\n            driver: gelf\r\n            options:  \r\n                gelf-address: \"udp://elk:5044\"\r\n                gelf-tag: \"test-elk-tag\"\r\n```\r\n\r\nbut I get an error:\r\n```\r\nps@ps-vm:~$ docker-compose up -d   \r\nCreating ps_elk_1\r\nCreating ps_tomcat-ad_1\r\nERROR: Failed to initialize logging driver: gelf: cannot connect to GELF endpoint: elk:5044 dial udp: lookup elk on 10.25.7.4:53: server misbehaving\r\n```\r\nSeems like the \"elk\" hostname is somehow not recognized, so the docker host tries to reach my network DNS server.\r\nWhat do you think? Is this approach possible?\r\n"}}