Logfire AWS CloudWatch Logging

Begin the process of forwarding logs from Amazon CloudWatch to Logfire with the following steps:

1. Create a New AWS Lambda

2. Upload Logfire AWS Lambda Sources

3. Configure Logfire Source Token

  • Move to the Configuration tab.

  • Open the Environment variables section.

  • Introduce a new variable named LOGFIRE_SOURCE_TOKEN and insert your Logfire source token.

Acquire your Logfire source token for new or existing sources at Logfire → Sources.

4. Set Up Subscription Filters in CloudWatch

  • Visit CloudWatch → Log groups.

  • Select the log group you wish to forward to Logfire.

  • Go to the Subscription filters tab.

  • Opt to Create → Create Lambda subscription filter with the following setup:

    • Lambda function: logfire-aws-lambda

    • Log format: JSON

    • Subscription filter name: logfire-aws-lambda-filter

Check the forwarding of your logs at Logfire → Live tail.

Need help? Contact us at support@logfire.ai. We’re ready to help!


Next Steps

After implementing CloudWatch log forwarding to Logfire, continuously monitor and verify the successful forwarding of logs. For further assistance or detailed guidance, refer to our comprehensive documentation or reach out to our support team.