JUHE API Marketplace

Error Logging with Rate-Limited Notifications

Active

For the n8n platform, this workflow logs all errors while limiting notifications to one every 5 minutes, preventing alert overload. It captures error details in a PostgreSQL database, ensuring efficient tracking and management of issues. Ideal for maintaining system performance without overwhelming users with frequent alerts.

Workflow Overview

For the n8n platform, this workflow logs all errors while limiting notifications to one every 5 minutes, preventing alert overload. It captures error details in a PostgreSQL database, ensuring efficient tracking and management of issues. Ideal for maintaining system performance without overwhelming users with frequent alerts.

This workflow is ideal for:

  • Developers and Engineers: Those who need to monitor and log errors in their applications.
  • System Administrators: Professionals managing systems that require error tracking and alerting.
  • Product Owners: Individuals interested in maintaining application reliability and user experience.
  • Data Analysts: Users who need to analyze error trends and system performance over time.

This workflow addresses the challenge of excessive error notifications by logging all errors while limiting alert notifications to one every 5 minutes. This ensures that users are informed of significant issues without overwhelming them with repetitive alerts, thus improving productivity and focus on critical issues.

  1. Error Trigger: The workflow starts when an error occurs in the application.
  2. Insert Log: The error details, including the URL, error message, stack trace, and execution context, are logged into a PostgreSQL database table named N8Err.
  3. Count for 5 Minutes: A query counts the number of errors logged in the last 5 minutes to determine if notifications should be sent.
  4. Conditional Check: If no errors are logged within the last 5 minutes, the workflow proceeds without sending notifications.
  5. Email Notifications: If errors exist, it sends an email alert to the specified recipients. The workflow is designed to send only one alert during the 5-minute window, preventing spamming.
  6. Push Notifications: Optionally, a mobile push notification can also be sent to alert users of the error.
  7. Cleanup: The workflow includes a cleanup step to truncate the log database, which is particularly useful in development environments.

Statistics

16
Nodes
0
Downloads
26
Views
12277
File Size

Quick Info

Categories
Communication & Messaging
Complex Workflow
+3
Complexity
complex

Tags

advanced
noop
logic
conditional
complex
sticky note
executeworkflowtrigger
database
+9 more

Boost your workflows with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.