I currently have several AWS ECS Fargate services with tasks that write their logging to stdout. Those log statements are automatically sent to CloudWatch. I want to send the same logging statements to Grafana Loki instead of CloudWatch using Alloy.
The services all write to stdout to avoid any potential disk-space issues that could be encountered when writing logs to files. I need help with config.alloy as well as task definitions for both the main apps as well as an alloy sidecar container.
Our focus right now is getting logs to Grafana cloud, but we later want traces and metrics as well.
Any guidance would be much appreciated.