New in version 0.8.
Plugin Name: DockerLogInput
The DockerLogInput plugin attaches to all containers running on a host and sends their logs messages into the Heka pipeline. The plugin is based on Logspout by Jeff Lindsay. Messages will be populated as follows:
Logspout expects to be dealing exclusively with textual log file data, and always assumes that the file data is newline delimited, i.e. one line in the log file equals one logical unit of data. For this reason, the DockerLogInput currently does not support the use of alternate splitter plugins. Any splitter setting specified in a DockerLogInput’s configuration will be ignored.
A Docker endpoint. Defaults to “unix:///var/run/docker.sock”.
The name of the decoder used to further transform the message into a structured hekad message. No default decoder is specified.
New in version 0.9.
Path to directory containing client certificate and keys. This value works in the same way as DOCKER_CERT_PATH.
New in version 0.10.
Overwrite the ContainerName with this environment variable on the Container if exists. If left empty the container name will still be used.
A list of environment variables to extract from the container and add as fields.
[nginx_log_decoder] type = "SandboxDecoder" filename = "lua_decoders/nginx_access.lua" [nginx_log_decoder.config] type = "nginx.access" user_agent_transform = true log_format = '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"' [DockerLogInput] decoder = "nginx_log_decoder" fields_from_env = [ "MESOS_TASK_ID" ]