Block 1 - ๐ฅ Query Loki for Error Logs
- Type / Role
- n8n-nodes-base.httpRequest - httpRequest
- Config choices
- Version 4.2
This workflow is provided as-is. Please review and test before using in production.
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....
n8n-nodes-base.httprequest, n8n-nodes-base.scheduletrigger, n8n-nodes-base.code, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by John Pranay Kumar Reddy.
Original n8n.io sourceEfficiently 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.
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).
Every 5 minutes (customizable)
Pulls logs from the last 10 minutes Keyword match: error, failed, oom, etc.
Extracts log fields (pod, container, etc.) Skips empty/malformed results
Removes repeated error messages (within query window)
Sends nicely formatted message to Slack
Loki- Exposed internally or externally Slack App- With chat:write OAuth n8n- Cloud or self-hosted
Import the JSON file into n8n
Update:
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Send deduplicated Kubernetes(EKS/GKE/AKS) error logs from Grafana Loki to Slack |
|---|---|
| Complexity | intermediate |
| Nodes | 11 |
| Categories | DevOps |
| Author | John Pranay Kumar Reddy |
| Published | 05 Aug 2025 |
Use the JSON export at /data/workflows/7021/7021.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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....
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.