# fluent-plugin-newrelic
A [Fluentd](https://fluentd.org/) output plugin that sends logs to New Relic
## Prerequisites
Fluentd >= v1.0
## Installation
```
$ td-agent-gem install -s https://1keEQc-cII8DjYRJVdpUXAw6DUPV6JmjpE@repo.fury.io/nrsf fluent-plugin-newrelic
```
## Configuration
### Required plugin configuration
| Property | Description |
|---|---|
| api_key | your New Relic API Insert key |
### Optional plugin configuration
| Property | Description | Default value |
|---|---|---|
| concurrent_requests | The number of threads to make requests from | 1 |
| retries | The maximum number of times to retry a failed request, exponentially increasing delay between each retry | 5 |
| retry_seconds | The inital delay between retries, in seconds | 5 |
| max_delay | The maximum delay between retries, in seconds | 30 |
| base_uri | New Relic ingestion endpoint | 'https://log-api.newrelic.com/log/v1' |
### Example
Add the following block to your Fluentd config file (with your specific New Relic Insights Insert key), then restart Fluentd.
Example:
```rb
@type newrelic
api_key
```
Getting your New Relic Insights Insert key:
`https://insights.newrelic.com/accounts//manage/api_keys`
## Copyright
* Copyright(c) 2019 - New Relic
* License
* Apache License, Version 2.0