Fluent Bit is an open-source log processor and forwarder that allows you to collect any data like metrics and logs from different sources, enrich them with filters, and send them to multiple destinations like Axiom.

Prerequisites

Configure Fluent Bit

  1. Set up the Fluent Bit configuration file based on the Fluent Bit documentation.

  2. 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_URL
        Port               443
        URI                /v1/datasets/DATASET_NAME/ingest
        Header             Authorization Bearer API_TOKEN
        Compress           gzip
        Format             json
        JSON_Date_Key      _time
        JSON_Date_Format   iso8601
        TLS                On
    
    • Replace AXIOM_URL with api.axiom.co if your organization uses the US region, and with api.eu.axiom.co if your organization uses the EU region. For more information, see Regions.
    • 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 want to send data.