awslogs driver simply forwards your container STDOUT and STDERR log streams to CloudWatch Logs. It does not read from a specific location in your filesystem. Therefore, your application will need to be configured in such a way that the logs are emitted via the STDOUT and STDERR log streams.
If your application is also writing the logs to a custom location, you will have to perform log rotation to clean up these logs to avoid file system exhaustion.
How do I query in SM Parameter Store AMI Alias for a specific version of Amazon ECS-Optimized Amazon Linux 2 AMIasked 8 months ago
How to have ECS map ports automatically when a task is deployed in EC2?asked 2 years ago
yum fails on ecs amiasked 3 years ago
ECS Container not recognizing EC2 instances after updating AMIasked 4 years ago
The logs aren't updating in cloudwatch log group for an ECS taskasked 4 months ago
Need URI for a ECS Clusterasked a month ago
ECS agent not available on Amazon ECS optimised AMIasked 3 years ago
Location of ECS CodeDeploy logs?asked 9 months ago
AWS ECS CapacityProvider not running tasksAccepted Answerasked 4 months ago
Where are ECS Task logs being stored and for how long?Accepted Answerasked 24 days ago