Send data from Fluent Bit to Axiom
Prerequisites#
-
Create a dataset in Axiom where you send your data.
-
Create an API token in Axiom with permissions to ingest data to the dataset you have created.
Configure Fluent Bit#
-
Set up the Fluent Bit configuration file based on the Fluent Bit documentation.
-
In the Fluent Bit configuration file, use the HTTP output plugin with the following configuration. For more information on the plugin, see the Fluent Bit documentation.
[OUTPUT] Name http Match * Host AXIOM_DOMAIN Port 443 URI /v1/ingest/DATASET_NAME Header Authorization Bearer API_TOKEN Compress gzip Format json JSON_Date_Key _time JSON_Date_Format iso8601 TLS On
Replace AXIOM_DOMAIN with the base domain of your edge deployment. For more information, see Edge deployments.
Replace API_TOKEN with the Axiom API token you have generated. For added security, store the API token in an environment variable.
Replace DATASET_NAME with the name of the Axiom dataset where you send your data.