Automated Server Log Cleanup via Email Alerts with SSH - Nginx, Docker, System - n8n Workflow | Neura Market

    Automated Server Log Cleanup via Email Alerts with SSH - Nginx, Docker, System

    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 Log Cleanup 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.

    Platform
    n8n
    Category
    Development & IT
    Price
    Free
    Creator
    Oneclick AI Squad
    • set
    • ssh
    • code
    • stickyNote
    • emailReadImap
    Back to MarketplaceMore n8n Workflows

    How to import this workflow into n8n

    1. 1Purchase or download the workflow to get the n8n workflow JSON file.
    2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
    3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
    4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

    Related Development & IT workflows

    • Version Control n8n Workflows in GitLab with Custom and OrganizationFree
    • Automate Website Monitoring with Multi-Channel Alerts
    Free
  1. Automated Company Enrichment and Filtering with Calendly Integration$5.03
  2. Automate n8n Workflow Backup and Synchronization with GitHubFree
  3. Automate Kubernetes Monitoring and Alerting with Prometheus and SlackFree
  4. Automate GitLab Merge Request Review and Risk Assessment with AIFree
  5. More from Oneclick AI Squad

    • AI-Powered Travel Assistant for WhatsApp using Llama 3.2
    • Automate Prescription Delivery via Google Sheets to Email & WhatsApp
    • Automated Email Blast with Follow-Ups & Response Tracking
    All Development & IT workflows →All n8n workflows →

    Need help customizing this workflow?

    Our automation experts adapt it to your exact stack, data, and process — or build one from scratch.

    Get a Custom Build
    Neura Market
    Neura Market
    Marketplace
    Directories
    Resources

    Marketplace

    • Prompts
    • Workflows
    • Agents Store
    • Workflow Packs
    • Categories
    • Marketplace

    Directories

    • AI Tools Directory
    • ChatGPT
    • Claude
    • Gemini
    • Cursor
    • Grok
    • DeepSeek
    • Perplexity
    • CoPilot
    • Midjourney
    • Stable Diffusion
    • MCP Servers
    • .md Directory
    • All Directories

    Free Tools

    • AI Text Humanizer
    • AI Content Detector
    • Workflow Generator
    • Model Comparison
    • AI Pricing Calculator
    • AI Benchmarks
    • ROI Calculator
    • All Free Tools

    Resources

    • AI News
    • Blog
    • AI Models
    • Integrations
    • Alternatives
    • n8n vs Zapier
    • Make vs Zapier
    • n8n vs Make
    • Resource Library
    • Documentation

    Community

    • AI Jobs
    • AI Events
    • AI Companies
    • Start Selling
    • Sell n8n Workflows
    • Sell AI Agents
    • Sell Prompts
    • Creator Guide
    • Advertise
    • Affiliates

    Company

    • About
    • Contact
    • Help
    • Careers
    • Pricing
    • Terms
    • Privacy
    • License
    • DMCA

    Stay Updated

    Get the latest AI tools and insights delivered to your inbox.

    Neura Market Logoneuramarket

    © 2026 Neura Market. All rights reserved.