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.
You’ll typically define this in a file called fluent-bit.conf:
Copy
Ask AI
[SERVICE] Log_Level info[INPUT] Name forward Listen 0.0.0.0 Port 24224[OUTPUT] Name http Match * Host api.axiom.co Port 443 URI /v1/datasets/$DATASET_NAME/ingest Format json_lines tls On format json json_date_key _time json_date_format iso8601 Header Authorization Bearer xait-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
By efficiently routing logs with FireLens and analyzing them with Axiom, businesses and development teams can save on operational overheads and reduce time spent on troubleshooting.