I do have a EC2 instance and a docker container running on it. Currently this docker container uses awslog driver to push logs to CloudWatch. If I go to CloudWatch console, I see a very large log stream (with container id as name) which contains all logs of last 16 days (since I've created the container). It almost seems like if I have this container running for 1 year, this log stream will keep all logs of 1 year. I am not quite sure what is the maximum size limit of a CloudWatch log stream, but most likely it will have a limit, at least I believe.
So my question is;
- How to chunk this huge logstream? Hopefully by current date, smth like
{{.ContainerId}}{{.CurrentDate}} - What is the maximum size limit of a CloudWatch log stream?
- Is it a good practice to append onto a single huge log stream?
