I have an application running on AWS Fargate. I have already added the Elastic APM agent to the application so I get metrics, transactions etc. but no log yet.
So how do I collect logs from an AWS Fargate application to Elastic Cloud?
I found the AWS Fargate integration but that seems to be mostly for collecting Fargate-specific metrics, not logs.
There is also the Filebeat AWS Fargate integration which seems to be about collecting Fargate application logs so that's good. It contains an example config:
- module: awsfargate
log:
enabled: true
Where do I deploy this config? Sorry if this is a newbie question, I'm just getting started with Elastic Cloud.
I believe you need to deploy a separate Filebeat agent (somewhere on AWS) with the given config. But for various reasons I will fetch the logs from Cloudwatch instead, for which there are also Filebeat and Elastic Agent integrations.
I've tried the Firelens approach as well but then they don't show up in CloudWatch logs anymore but I want to keep them in CloudWatch as well just in case the log shipping pipeline fails.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.