I want to collect php logs from my application sitting on EC2 Linux 2 instances. I've been reading the AWS docs on the Unified Cloudwatch Agent, which does exactly what I want by collecting metrics/logs and sending them to Cloudwatch.
However, after reading through the docs, I don't see anything in regards to Auto Scaling EC2 instances? I want to be able to capture logs from all EC2 instances that come and go.
How do I setup the Unified Cloudwatch Agent with Auto scaling EC2 instances? From what I've been reading it all seems to be just installing it on a single EC2 instance!