workflows.fit
Back to n8n workflows
n8n templateFreeBy John Pranay Kumar Reddy

Send deduplicated Kubernetes(EKS/GKE/AKS) error logs from Grafana Loki to Slack

โœจ Summary Efficiently monitor Kubernetes environments by sending only unique error logs from Grafana Loki to Slack. Reduces alert fatigue while keeping your team informed about critical log events. ๐Ÿง‘โ€๐Ÿ’ป Whoโ€™s it for ...

DevelopmentCore NodesHttp RequestSchedule TriggerCodeSticky Note
Loading interactive preview...

Template notes

โœจ Summary Efficiently monitor Kubernetes environments by sending only unique error logs from Grafana Loki to Slack. Reduces alert fatigue while keeping your team informed about critical log events.

๐Ÿง‘โ€๐Ÿ’ป Whoโ€™s it for - DevOps or SRE engineers running EKS/GKE/AKS - Anyone using Grafana Loki and Promtail for centralized logging - Teams that want Slack alerts but hate alert spam

๐Ÿ” What it does This n8n workflow queries your Loki logs every 5 minutes, filters only the critical ones (error, timeout, exception, etc.), removes duplicate alerts within the batch, and sends clean alerts to a Slack channel with full metadata (pod, namespace, node, container, log, timestamp).

๐Ÿง  How it works ๐Ÿ•’ Schedule Trigger Every 5 minutes (customizable)

๐ŸŒ Loki HTTP Query Pulls logs from the last 10 minutes Keyword match: error, failed, oom, etc.

๐Ÿงน Log Parsing Extracts log fields (pod, container, etc.) Skips empty/malformed results

๐Ÿง  Deduplication Removes repeated error messages (within query window)

๐Ÿ“ค Slack Notification Sends nicely formatted message to Slack