newrelic-fluentd-docker is a custom Docker image that runs Fluentd, listens for log events from containers running the Fluentd logging driver, and forwards them to New Relic. The image can be customized to support additional use cases (e.g. tailing files on a container host, receiving and forwarding syslog input).
The command below configures the container to receive and forward log events from other Docker containers running the Fluentd logging driver:
docker run --name="newrelic-fluentd-docker" --restart=always -d -p 24224:24224 \
-e "API_KEY=<YOUR API INSERT KEY>" -e "BASE_URI=<YOUR HTTP ENDPOINT>" \
-e "LOG_LEVEL=<YOUR DEFAULT LOG LEVEL>" newrelic/newrelic-fluentd-docker:latest
$ git clone https://github.com/newrelic/newrelic-fluentd-docker
fluent.conf with your custom Fluentd configuration.docker build . -t newrelic-fluentd-docker
| Property | Description | Default Value | Required or Optional |
|---|---|---|---|
| API_KEY | Your New Relic API insert key | - | Required |
| BASE_URI | New Relic ingestion endpoint | https://log-api.newrelic.com/log/v1 | Optional |
| LOG_LEVEL | Fluentd log level | warn | Optional |
https://insights.newrelic.com/accounts/<YOUR ACCOUNT ID>/manage/api_keysContent type
Image
Digest
Size
15.9 MB
Last updated
over 6 years ago
docker pull newrelic/newrelic-fluentd-dockerPulls:
7
Jul 6 to Jul 12