Skip to content

datacoda/docker-fluentd-loggly

Repository files navigation

datacoda/fluentd-loggly

Latest tag License MIT

Fluentd logging endpoint transcription to Loggly service. In addition to the standard fields container_id and container_name, it adds the following fields to the Loggly json record.

  • node_hostname : docker node of this logger.
  • fluentd_tag : fluentd-tag environment variable of client container.

Requires Docker Engine 1.8+

Step N: Start loggly

    docker run -d --name loggly \
        -p 24224:24224 \
        -e TOKEN:ABCD-1234-ABCD-1234 \
        -e HOST:`hostname` \
        -e LOGGLY_TAG:docker,container \
        datacoda/fluentd-loggly
  • TOKEN [required] is the Loggly API token.

  • HOST [required] is required during creation for node_hostname to be populated.

  • LOGGLY_TAG [optional] by default is 'docker,container' and messages in Loggly will show up with both tags.

    Note: By default, the fluentd log-driver in Docker will assume port 24224. Secure this port.

Step N: Confirm

Test the loggly container.

    docker run --rm --log-driver=fluentd ubuntu echo "Hello Fluentd!"

About

Container for forwarding fluentd logs to Loggly

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published