The decoder in the config you linked is unnecessary, but even so it does seem fine, and in fact it does work for me when I try it. I'm running Docker v1.7.1 on Linux Mint 17.2. Here are the exact steps I took:
- create a folder "heka_docker_test", cd into it - create `Dockerfile` file w/ following contents: ``` FROM kyma/docker-nginx COPY src/ /var/www CMD 'nginx' ``` - create `heka_docker_test/src` folder, copy some static web content into it - run `docker build -t mysite .` - run `docker run -p 8080:80 -d mysite` At this pont, I can point a browser at http://localhost:8080 and see the web content. Then on the host machine (i.e. not in a docker container) I run hekad with the following config: ``` [DockerLogInput] [PayloadEncoder] [LogOutput] message_matcher = "TRUE" encoder = "PayloadEncoder" ``` Now when I browse around on http://localhost:8080/, I can see the nginx log entries showing up in hekad's console output, which shows that the log is in fact making it out to Heka. Can you try exactly this set of steps and see whether that works? -r On 10/13/2015 07:34 AM, Adam Brady wrote:
Trying to get a basic logging solution working with docker: https://gist.github.com/SomeoneWeird/d0430f06b1396880feac When running this with containers already started (also tried starting containers after running hekad) I do not get any output in my console. If I change DockerLogInput to DockerEventInput things start working. Am I doing something wrong? Thanks. _______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

