Public | Automated Build

Last pushed: 7 hours ago
Short Description
fluentd with loggly forwarder
Full Description


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

  • _nodehostname : docker node of this logger.
  • _fluentdtag : fluentd-tag environment variable of client container.

Requires Docker Engine 1.8+

Step N: Start loggly

    docker run -d --name fluentd-loggly \
        -p 24224:24224 \
        -e TOKEN=ABCD-1234-ABCD-1234 \
        -e HOST=`hostname` \
        -e LOGGLY_TAG=docker,container \
  • TOKEN [required] is the Loggly API token.
  • HOST [required] is required during creation for _nodehostname to be populated.
  • _LOGGLYTAG [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!"
Docker Pull Command
Source Repository