Data & Databases

Log system errors and send controlled notifications

16 nodes 363 138 Automatic trigger
Download

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

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Postgres Email Send Pushover Twitter/X

Details

Trigger Automatic trigger
Nodes 16
Apps 4
Views 363
Downloads 138

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 (16)

/

Error Trigger

Error Trigger

#1

Insert Log

Postgres

#2

Count for 5 minutes

Postgres

#3

Sticky Note

Sticky Note

#4

Principal E-Mail

Email Send

#5

Fallback E-Mail

Email Send

#6

Push mobile notification

Pushover

#7

Truncate Log Database

Postgres

#8

Sometimes... just cleanup

Manual Trigger

#9

Call this Sample - Prepend to your error catcher

Execute Workflow

#10

See below to prepend this at your error handling

Execute Workflow Trigger

#11

If there is no logs in 5 minutes

If

#12

CleanUp execution. See below if you will prepend this workflow

Code

#13

Insert your error handling logic after this

No Op

#14

Sticky Note1

Sticky Note

#15

Sticky Note2

Sticky Note

#16