Package Information
Documentation
n8n-nodes-ryze-automation-logger

A custom n8n node for logging Ryze workflow execution metrics to MySQL database. This node captures execution data from Ryze Pixel Sender and stores comprehensive metrics for monitoring and analysis.
Installation
Community Nodes (Recommended)
- Go to Settings > Community Nodes in your n8n instance
- Click Install a community node
- Enter
n8n-nodes-ryze-automation-logger - Click Install
Manual Installation
npm install n8n-nodes-ryze-automation-logger
Prerequisites
- n8n instance (self-hosted or cloud)
- MySQL database (5.7+ or 8.0+)
- Node.js v22 or higher
Database Setup
Create the required table in your MySQL database:
CREATE TABLE IF NOT EXISTS n8n_scraper_logs (
id INT AUTO_INCREMENT PRIMARY KEY,
script_id VARCHAR(50) NOT NULL,
execution_mode VARCHAR(20) NOT NULL, -- 'regular' or 'monthly'
execution_type VARCHAR(20) NOT NULL, -- 'manual' or 'scheduled'
workflow_name VARCHAR(255) NOT NULL,
status VARCHAR(20) NOT NULL, -- 'success' or 'error'
items_processed INT NOT NULL DEFAULT 0,
pixel_new INT NOT NULL DEFAULT 0,
pixel_duplicates INT NOT NULL DEFAULT 0,
pixel_updated INT NOT NULL DEFAULT 0,
event_summary JSON, -- {"lead": 1, "sale": 5}
full_details JSON, -- Complete Pixel Sender output
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
INDEX idx_script_id (script_id),
INDEX idx_created_at (created_at),
INDEX idx_execution_type (execution_type)
);
You can use a custom table name by changing the Table Name parameter in the node settings.
Configuration
1. Add MySQL Credentials
- Go to Credentials in n8n
- Click Add Credential
- Select MySQL
- Fill in your database connection details:
- Host
- Port (default: 3306)
- Database name
- User
- Password
2. Add Node to Workflow
- In your workflow, add the Ryze Automation Logger node after your Ryze Pixel Sender node
- Select your MySQL API credentials
- Configure the database settings:
- Database: MySQL database name (default:
backoffice) - Table: Table name for logs (default:
n8n_scraper_logs) - Execution Mode: Choose
Auto-Detect,Regular, orMonthly(default:Auto-Detect)
- Database: MySQL database name (default:
- (Optional) Configure additional options:
- Fail on Error: Whether to fail the workflow if logging fails (default:
false) - Verbose Logging: Enable detailed console logging (default:
false)
- Fail on Error: Whether to fail the workflow if logging fails (default:
Usage
Workflow Pattern
Ryze Pixel Sender
↓
Ryze Automation Logger ← Automatically logs metrics to MySQL
↓
(Optional: Additional nodes)
What Gets Logged
The node automatically extracts and logs:
- script_id - From Pixel Sender output
- execution_mode - 'regular' or 'monthly'
- execution_type - Auto-detected ('manual' or 'scheduled')
- workflow_name - From n8n workflow context
- status - 'success' or 'error' (based on pixel failures)
- items_processed - Total input items
- pixel_new - New items sent to pixel
- pixel_duplicates - Duplicate items skipped
- pixel_updated - Updated items
- event_summary - JSON of event types (e.g.,
{"lead": 1, "sale": 5}) - full_details - Complete Pixel Sender output
Example Input (from Pixel Sender)
{
"execution": {
"mode": "regular",
"script_id": "2000",
"timestamp": "2025-12-11T13:32:03.613Z"
},
"summary": {
"total_input": 40,
"new_items": 1,
"exact_duplicates": 39,
"updated_items": 0,
"event_summary": {
"lead": 1
},
"pixel_success": 1,
"pixel_failed": 0
}
}
Example Output
The node returns detailed success information:
{
"success": true,
"logged_at": "2025-12-11T23:00:00.000Z",
"script_id": 2000,
"log_data": {
"script_id": 2000,
"execution_mode": "regular",
"execution_type": "scheduled",
"workflow_name": "[2000] [API] Aircall - PartnerStack Event Tracker",
"status": "success",
"items_processed": 40,
"pixel_new": 1,
"pixel_duplicates": 39,
"pixel_updated": 0,
"event_summary": "{\"lead\": 1}",
"full_details": "[{...}]"
}
}
On error (when Fail on Error is disabled):
{
"success": false,
"error": "Error message here"
}
Features
✅ Type-Safe Implementation - Full TypeScript interfaces for data validation
✅ Configurable Database & Table - Specify both database and table names
✅ Execution Mode Options - Auto-detect or manually specify (Regular/Monthly)
✅ Auto-Detection - Automatically detects manual vs scheduled execution
✅ Error Handling Options - Choose to fail workflow or continue on error
✅ Verbose Logging - Optional detailed console logging for debugging
✅ Detailed Output - Returns complete log data for downstream processing
✅ Smart JSON Handling - Properly handles empty event summaries and edge cases
✅ Custom MySQL Credentials - Uses dedicated MySqlApi credential type
Monitoring Queries
Recent Executions
SELECT script_id, workflow_name, execution_type,
items_processed, pixel_new, pixel_duplicates,
created_at
FROM n8n_scraper_logs
ORDER BY created_at DESC
LIMIT 50;
Success Rate by Script (Last 7 Days)
SELECT script_id,
COUNT(*) as total_executions,
SUM(CASE WHEN status = 'success' THEN 1 ELSE 0 END) as successful,
ROUND(SUM(CASE WHEN status = 'success' THEN 1 ELSE 0 END) * 100.0 / COUNT(*), 2) as success_rate
FROM n8n_scraper_logs
WHERE created_at >= DATE_SUB(NOW(), INTERVAL 7 DAY)
GROUP BY script_id
ORDER BY total_executions DESC;
New Items Trend (Last 30 Days)
SELECT DATE(created_at) as date,
script_id,
SUM(pixel_new) as total_new_items,
SUM(items_processed) as total_processed
FROM n8n_scraper_logs
WHERE created_at >= DATE_SUB(NOW(), INTERVAL 30 DAY)
GROUP BY DATE(created_at), script_id
ORDER BY date DESC, script_id;
Development
Setup
git clone https://github.com/ohadcohen11/n8n-ryze-automation-logger.git
cd n8n-ryze-automation-logger
npm install
Build
npm run build
Link for Local Development
npm link
cd /path/to/n8n
npm link n8n-nodes-ryze-automation-logger
Compatibility
- n8n version: 1.0.0+
- Node.js version: 22.0+
- MySQL version: 5.7+ or 8.0+
License
Author
Ohad Cohen
Email: ohad.cohen@ryzebeyond.com
GitHub: @ohadcohen11
Support
- Issues: GitHub Issues
- Repository: GitHub
Version History
1.0.0 (2025-12-11)
- Initial release
- Auto-detection of script_id, execution type, and workflow name
- Configurable table name
- Comprehensive error handling
- MySQL integration with standard n8n credentials