LogDNA
LogDNA is an intuitive cloud based log management system that provides you an easy interface to query your logs once they are stored.
The Fluent Bit logdna
output plugin allows you to send your log or events to a LogDNA compliant service like:
Before to get started with the plugin configuration, make sure to obtain the proper account to get access to the service. You can start with a free trial in the following link:
Configuration Parameters
Key | Description | Default |
---|---|---|
logdna_host | LogDNA API host address | logs.logdna.com |
logdna_port | LogDNA TCP Port | 443 |
api_key | API key to get access to the service. This property is mandatory. | |
hostname | Name of the local machine or device where Fluent Bit is running. When this value is not set, Fluent Bit lookup the hostname and auto populate the value. If it cannot be found, an | |
mac | Mac address. This value is optional. | |
ip | IP address of the local hostname. This value is optional. | |
tags | A list of comma separated strings to group records in LogDNA and simplify the query with filters. | |
file | Optional name of a file being monitored. Note that this value is only set if the record do not contain a reference to it. | |
app | Name of the application. This value is auto discovered on each record, if not found, the default value is used. | Fluent Bit |
Auto Enrichment & Data Discovery
One of the features of Fluent Bit + LogDNA integration is the ability to auto enrich each record with further context.
When the plugin process each record (or log), it tries to lookup for specific key names that might contain specific context for the record in question, the following table describe the keys and the discovery logic:
Key | Description |
---|---|
level | If the record contains a key called |
file | if the record contains a key called |
app | If the record contains a key called |
meta | if the record contains a key called |
Getting Started
The following configuration example, will emit a dummy example record and ingest it on LogDNA. Copy and paste the following content in a file called logdna.conf
:
run Fluent Bit with the new configuration file:
Fluent Bit output:
Your record will be available and visible in your LogDNA dashboard after a few seconds.
Query your Data in LogDNA
In your LogDNA dashboard, go to the top filters and mark the Tags aa
and bb
, then you will be able to see your records as the example below:
Last updated