Skip to content
Data & Databases

Log system errors and send controlled notifications

9 nodes 469 151 Automatic trigger
Download

Loading workflow…

Workflow Description

Automation that captures application errors, stores them in PostgreSQL, and sends notifications via email, Pushover, or Twitter with built-in safeguards to prevent notification fatigue from excessive repeated alerts.

How it works

  1. 1.Trigger when system error is detected
  2. 2.Store error details and timestamp in PostgreSQL database
  3. 3.Check frequency of previous notifications for this error type
  4. 4.Send email or Pushover alert if notification limits not exceeded
  5. 5.Optionally post critical alert to Twitter/X

Use cases

  • Monitor production applications and consolidate error logs in a centralized Postgres database for auditing and debugging
  • Prevent alert noise by throttling notifications and grouping similar errors to keep ops teams focused

Requirements

  • Active PostgreSQL database with schema for storing error logs and notification history
  • Email service and Pushover account configured for reliable alert delivery

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Error Trigger Postgres Manual Trigger Twitter/X If Code No Op

Details

Trigger Automatic trigger
Nodes 9
Apps 7
Views 469
Downloads 151

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (9)

/

Error Trigger

Error Trigger

#1

Insert Log

Postgres

#2

Count for 5 minutes

Postgres

#3

Sticky Note

Sticky Note

#4

Truncate Log Database

Postgres

#5

Sometimes... just cleanup

Manual Trigger

#6

See below to prepend this at your error handling

Execute Workflow Trigger

#7

If there is no logs in 5 minutes

If

#8

CleanUp execution. See below if you will prepend this workflow

Code

#9

Insert your error handling logic after this

No Op

#10

Sticky Note1

Sticky Note

#11

Sticky Note2

Sticky Note

#12
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime