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

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

Ready for 3.0

by John Pranay Kumar Reddy ✓ · 421 views · created 2025-08-05 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 5 nodes and runs on a schedule (every minute). It uses only n8n's built-in nodes. It also calls loki-gateway.monitoring.svc.cluster.local:8080 and slack.com over HTTP.

How it runs

Trigger: On a schedule (every minute).

  1. 📥 Query Loki for Error Logs (HTTP Request): calls loki-gateway.monitoring.svc.cluster.local:8080
  2. 🧹 Extract Log Fields (Code): runs custom JavaScript code
  3. 🧠 Remove Duplicate Alerts (Code): runs custom JavaScript code
  4. 📤 Send Alerts to Slack (HTTP Request): calls slack.com (POST)

HTTP calls to: loki-gateway.monitoring.svc.cluster.local:8080, slack.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (3)

From the author

✨ 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…

Excerpt from John Pranay Kumar Reddy's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.