For the complete documentation index, see llms.txt. This page is also available as Markdown.

New Relic

The New Relic output plugin lets you send logs to New Relic.

Configuration parameters

Key
Description
Default

api_key

Your New Relic API key. Either an api_key or license_key is required.

none

base_uri

The New Relic API endpoint.

https://log-api.newrelic.com/log/v1

compress

Sets the compression mechanism for the payload. Possible values: gzip or false.

gzip

license_key

Your New Relic license key. Either an api_key or license_key is required.

none

workers

Sets the number of workers to perform flush operations for this output.

0

Example configuration

The following example configuration uses a dummy input plugin and a nrlogs output plugin.

service:
  flush: 1
  log_level: info

pipeline:
  inputs:
    - name: dummy
      dummy: '{"message":"a simple message", "temp": "0.74", "extra": "false"}'
      samples: 1

  outputs:
    - name: nrlogs
      match: '*'
      api_key: YOUR_API_KEY_HERE
[SERVICE]
  Flush     1
  Log_Level info

[INPUT]
  Name      dummy
  Dummy     {"message":"a simple message", "temp": "0.74", "extra": "false"}
  Samples   1

[OUTPUT]
  Name      nrlogs
  Match     *
  Api_Key   YOUR_API_KEY_HERE

Run Fluent Bit with the new configuration file:

Fluent Bit output:

Last updated

Was this helpful?