Image Overview: newrelic-fluent-bit-output
ReferenceChainguard ImagesProduct
stable
cgr.dev/chainguard/newrelic-fluent-bit-output
Tags | Aliases |
---|---|
latest | 1 , 1.16 , 1.16.0 , 1.16.0-r2 |
latest-dev | 1-dev , 1.16-dev , 1.16.0-dev , 1.16.0-r2-dev |
The newrelic-fluent-bit-output plugin forwards output to New Relic. Minimal newrelic-fluent-bit-output container image.
Get It
The image is available on cgr.dev
:
docker pull cgr.dev/chainguard/newrelic-fluent-bit-output
Usage
Fluent Bit needs to know the location of the New Relic output plugin. We already added the plugin to the image, so you just need to tell Fluent Bit where to find it which is “/fluent-bit/bin/out_newrelic.so” in the image.
Add the following to your Fluent Bit configuration file and save it as fluent-bit.conf
:
[INPUT]
Name tail
Path /path/to/your/log/file
[OUTPUT]
Name newrelic
Match *
licenseKey <NEW_RELIC_LICENSE_KEY>
[FILTER]
Name modify
Match *
Add hostname <HOSTNAME>
Add service_name <SERVICE_NAME>
Then run Fluent Bit with the following command:
docker run -v /path/to/your/config/file:/fluent-bit/etc/fluent-bit.conf:ro -v /path/to/your/log/file:/path/to/your/log/file:ro cgr.dev/chainguard/newrelic-fluent-bit-output -c /fluent-bit/etc/fluent-bit.conf -e /fluent-bit/bin/out_newrelic.so