
Curated by n8n Markets team
Last updated: March 8, 2026
This n8n workflow monitors email alerts for disk utilization exceeding 80%, extracts the server IP, logs into the server, and purges logs from Nginx, PM2, Docker, and system files to clear disk space. ### Key Insights - Ensure email alerts are consistently formatted with server IP details. - SSH access must be properly configured to avoid authentication failures. ### Workflow Process 1. Initiate the workflow with the `Check Disk Alert Emails` node when an email triggers on high disk usage. 2. Parse the email to extract the server IP using the `Extract Server IP from Email` node. 3. Set up SSH credentials and paths manually with the `Prepare SSH Variables` node. 4. Execute cleanup commands to delete logs from Nginx, PM2, Docker, and system files using the `Run LogCleanup Commands via SSH` node. ### Usage Guide - Import the workflow into n8n and configure email and SSH credentials. - Test with a sample email alert to verify IP extraction and log deletion. ### Prerequisites - Email service (e.g., IMAP or API) for alert monitoring - SSH access with valid credentials ### Customization Options Modify the `Prepare SSH Variables` node to target specific log directories or adjust cleanup commands for different server setups.
n8n instance (self-hosted or cloud). credentials.
1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation
Included in Builder Pro — $19/mo, 4,177 premium workflows
Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.
100% Secure Checkout
Refund requests within 7 days of a new subscription
0 reviews
No reviews yet.
Log in to ask a question.
No questions yet. Be the first to ask!