Fluent Bit
This document describes a sample setup for sending logs to Last9 via Fluent bit
Fluent Bit is a fast and lightweight telemetry agent for logs, metrics, and traces. This document provides step by step instructions to send logs from Fluent Bit to Last9.
Prerequisites
- Create a Last9 cluster by following Getting Started guide.
- Keep the following information handy after creating the cluster from the Integrations page:
$last9_otlp_endpoint
: Last9’s OTLP endpoint$last9_basic_auth_header
: OpenTelemetry Basic authorization header$last9_username
: OpenTelemetry username$last9_password
: OpenTelemetry password
Fluent Bit Configuration
Fluent bit supports shipping logs to Last9 using the opentelemetry
output plugin.
Add following output stanza in the Fluent Bit configuration file.
Read more on the configuration options provided by the opentelemetry
plugin here.
This is the bare minimum configuration that you can add in the Fluent Bit config to start sending logs to Last9.
Advanced Configuration
You can add advanced lua functions to parse the logs before sending to Last9.
As an example, above lua function flattens the nested maps present in logs.
Additionally, it is highly recommended to add a unique tag to the log records per cluster or environment. It can be done by adding a modify Filter.
Read more on Fluent bit modify filter here.
Verification
Login to Last9 and visit the Logs panel.
Troubleshooting
Please get in touch with us on Discord or Email if you have any questions.