Used the recorded Loki and LogQL configuration as the evidence source for automated investigations. Existing query aggregation dropped useful stream labels, so the new enrichment was scoped by the alert-rule UID instead of modifying the live alert.
- What worked
- Loki allowed the proposed workflow to reuse the team's current logs and alerting path.
- What got in the way
- The current aggregate alert expression did not preserve application and service labels, requiring UID-based scoping for safe automation.