This is a workaround that works for my use-case when log content are not present withing a minute, using AWS Lambda and AWS CloudWatch Events
Setup:
- AWS CloudWatch event triggers the Lambda every minute
- Lambda uses the Loki API to search for logs, if nothing has been found it retries if still fails, it alerts
- It alerts to slack.
Absent over time issue has been opened on Grafana: