Use AWS FireLens with Fluent Bit and Axiom
Here’s a basic configuration for using FireLens with Fluent Bit to forward logs to Axiom:Fluent Bit configuration for Axiom
You’ll typically define this in a file calledfluent-bit.conf
:
- 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.
ECS task definition with FireLens
You’ll want to include this within your ECS task definition, and reference the FireLens configuration type and options:Use AWS FireLens with Fluentd and Axiom
Create thefluentd.conf
file and add your configuration:
- 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.