New Relic
The New Relic output plugin lets you send logs to New Relic.
Configuration parameters
Key
Description
Default
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
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
Run Fluent Bit with the new configuration file:
# For YAML configuration.
fluent-bit --config fluent-bit.yaml
# For classic configuration
fluent-bit --config fluent-bit.conf
Fluent Bit output:
...
[2020/04/10 10:58:35] [ info] [output:nrlogs:nrlogs.0] log-api.newrelic.com:443, HTTP status=202
{"requestId":"feb312fe-004e-b000-0000-0171650764ac"}
...
Last updated
Was this helpful?