I have a log file (example: apilog.txt) inside my docker container running in an EC2 instance.
I need to push the content in that file to AWS Cloudwatch log groups.
How can I achieve this task .
Thanks in Advance
I have a log file (example: apilog.txt) inside my docker container running in an EC2 instance.
I need to push the content in that file to AWS Cloudwatch log groups.
How can I achieve this task .
Thanks in Advance
Option 1 - Use ECS instead of EC2+docker. ECS is the same thing (EC2+docker) but better because it's integrated with other AWS services like CloudWatch and the container logs are automatically fed into CloudWatch Logs.
Option 2 - Use CloudWatch Logs logging agent in Docker
Option 3 - Use standalone CloudWatch Logs Agent that can read log files and feed them to CloudWatch.
Hope that helps :)