Templates / Log errors and audit events with n8n Data Tables

Log errors and audit events with n8n Data Tables

Ready for 3.0

by Venkata V ✓ · 90 views · created 2026-04-28 · Document Extraction

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 12 nodes and runs when another workflow fails (error workflow) (plus 2 other triggers). It uses only n8n's built-in nodes.

How it runs

Trigger: When another workflow fails (error workflow) (plus 2 other triggers).

  1. Normalize Error Event (Code): runs custom JavaScript code
  2. Normalize Audit Event (Code): runs custom JavaScript code
  3. Build Purge Config (Code): runs custom JavaScript code
  4. Insert ErrorLog (Data table): uses Data table
  5. Insert AuditLog (Data table): uses Data table
  6. Delete old ErrorLog rows (Data table): delete rows
  7. Delete old AuditLog rows (Data table): delete rows
  8. Build Purge Audit Event (Code): runs custom JavaScript code
  9. Insert Purge AuditLog (Data table): uses Data table

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (5)

From the author

How it works This workflow provides a reusable error handling, audit logging, and observability pattern for n8n workflows using two n8n custom Data Tables: AuditLog and ErrorLog. It is designed to be used across multiple workflows as a central logging…

Excerpt from Venkata V'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.