A Fluentd output plugin that sends logs to New Relic
This project is provided AS-IS WITHOUT WARRANTY OR SUPPORT, although you can report issues and contribute to the project here on GitHub.
Please see the examples directory for ways to build a Docker image with the New Relic output plugin and other configuration types that could be useful in your environment.
Fluentd >= v1.0
Add the plugin to your fluentd agent:
fluent-gem install fluent-plugin-newrelic
If you are using td-agent:
td-agent-gem install fluent-plugin-newrelic
For more info, review Fluentd's official documentation.
Exactly one of the following:
Property | Description |
---|---|
api_key | your New Relic API Insert key |
license_key | your New Relic License key |
Property | Description | Default value |
---|---|---|
base_uri | New Relic ingestion endpoint | https://log-api.newrelic.com/log/v1 |
If you are running this plugin in the eu set the base_uri
to https://log-api.eu.newrelic.com/log/v1
.
- To make Kubernetes log forwarding easier, any
log
field in a log event will be renamed tomessage
, overwriting anymessage
field. Kubernetes logs have their messages in alog
field, while we want messages in amessage
field.
Add one of the following blocks to your Fluentd config file (with your specific key), then restart Fluentd.
Example using Insights Insert key:
<match **>
@type newrelic
api_key <NEW_RELIC_INSIGHTS_INSERT_KEY>
</match>
Getting your New Relic Insights Insert key:
https://insights.newrelic.com/accounts/<ACCOUNT_ID>/manage/api_keys
Example using License key:
<match **>
@type newrelic
license_key <NEW_RELIC_LICENSE_KEY>
</match>
Getting your New Relic license key:
https://rpm.newrelic.com/accounts/<ACCOUNT_ID>
- Copyright(c) 2019 - New Relic
- License
- Apache License, Version 2.0