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+
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.
Test the loggly container.
docker run --rm --log-driver=fluentd ubuntu echo "Hello Fluentd!"