Collect logs from your AWS Fargate cluster to Better Stack.
In AWS Console β Kinesis β Data Firehose β Create delivery stream, create a new delivery stream with these settings:
You can also enable GZIP compression, setup Amazon S3 backup bucket, or additional custom parameters in your Firehose delivery stream settings.
After creation, you can run Test with demo data in the delivery stream detail page. You should see the demo logs in Better Stack β Logs & traces.
It may take few minutes for demo logs to propagate to Better Stack.
Save the following YAML config to a file named aws-observability.yaml.
Replace cluster-region with the region code of your cluster (eg. us-east-1).
Then apply the manifest to your cluster:
First, download the AWS Kinesis Data Firehose IAM policy which allows logging into the delivery stream:
Create an IAM policy from the policy file:
Attach the policy to your Pod execution role.
Replace FargatePodExecutionRole with your Pod execution role name. You can find it in your Fargate profile details in EKS Cluster β Compute tab β Fargate profiles.
To enable logging in a pod, it needs to be restarted.
You can restart your deployments via kubectl rollout restart deployment/<deployment-name> or kubectl rollout restart deployments.
To check if a pod has logging enabled, run kubectl describe:
You should see your logs in Better Stack β Live tail.
It may take few minutes for your logs to propagate to Better Stack.
Please let us know at hello@betterstack.com.
We're happy to help! π
Interested in learning more about logging in Amazon Fargate clusters?
Head over to official AWS Fargate logging.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.