Thank you, Rob and Anton! Good info. When I plugged in the bit from Anton about the new container I started to see output in hekad. It seems like my existing Docker containers aren't outputting data available to "docker logs", for example, because I'm starting them with a TTY. When I start them without a TTY then I see data in heka via DockerLogInput.
-Ali On Thu, Mar 19, 2015 at 4:43 PM Anton Lindström < [email protected]> wrote: > Hi Ali, > > Try something like this: https://gist.github.com/ > carlanton/bf2ce9a10a9c607bd54b > > > // Anton > > > 2015-03-19 21:17 GMT+01:00 Rob Miller <[email protected]>: > >> PayloadRegexDecoder won't put anything in the message unless you add the >> message_fields subsection to tell it how to map the regex captures to the >> message fields. >> >> That's moot, though, because you don't need a decoder. If you don't >> specify a decoder then each log line will just get dropped into the message >> payload. >> >> -r >> >> >> On 03/19/2015 01:04 PM, Ali wrote: >> >>> On Sat, Jan 31, 2015 at 9:45 AM Halid Rian <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Hi guys i would like to understand something about >>> the DockerLogInput. So in the description it says it will gather all >>> the logs from the running containers. That's the behaviour I'm >>> expecting but my containers are running all kind of services so how >>> does heka know which decoder to use? >>> >>> >>> I'm getting started with Heka and DockerLogInput and am just trying to >>> test my config to see what it's getting back from docker.sock. I don't >>> yet know how decoders are written or how they work exactly. :-) Is >>> there a general purpose decoder I can just plug in to see what's coming >>> back from DockerLogInput? I modified the sanity_check.toml in the >>> quickstart guide and added this: >>> >>> [DockerLogInput] >>> endpoint = "unix:///var/run/docker.sock" >>> >>> But, predictably, I'm not seeing anything in the terminal when I >>> interact with the docker daemon. I tried this, but it's not working >>> either: >>> >>> [docker_decoder] >>> type = "PayloadRegexDecoder" >>> match_regex = '^(?P<Message>.*)$' >>> >>> [DockerLogInput] >>> ... >>> decoder = "docker_decoder" >>> >>> Thanks in advance, >>> Ali >>> >>> >>> _______________________________________________ >>> Heka mailing list >>> [email protected] >>> https://mail.mozilla.org/listinfo/heka >>> >>> >> _______________________________________________ >> Heka mailing list >> [email protected] >> https://mail.mozilla.org/listinfo/heka >> > >
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

