Public | Automated Build

Last pushed: 4 days ago
Short Description
fluentd with loggly forwarder
Full Description


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 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 _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!"
Docker Pull Command
Source Repository