AWS FireLens is a log routing feature for Amazon ECS. It lets you use popular open-source logging projects Fluent Bit or Fluentd with Amazon ECS to route your logs to various AWS and partner monitoring solutions like Axiom without installing third-party agents on your tasks. FireLens integrates with your Amazon ECS tasks and services seamlessly, so you can send logs from your containers to Axiom seamlessly. To determine the best method to send data from different AWS services, see Send data from AWS to Axiom.Documentation Index
Fetch the complete documentation index at: https://axiom-mano-v2-endpoints.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to update the dataset you have created.
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
AXIOM_DOMAIN 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.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
AXIOM_DOMAIN 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.