Back to Catalog

Error log monitor with SSH, Slack alerts & Jira ticket creation

Oneclick AI SquadOneclick AI Squad
594 views
2/3/2026
Official Page

Description

  • Automates monitoring of error logs and notifies developers of critical errors.
  • Sends Slack alerts for critical and non-critical errors, with auto-creation of Jira tickets for critical issues.

Essential Information

  • Triggers manually or on a scheduled basis (e.g., every 5 minutes).
  • Reads and parses server logs to detect errors.
  • Alerts developers via Slack and creates Jira tickets for critical errors.

System Architecture

  • Error Detection Pipeline:
    • Manual Trigger: Initiates the workflow manually.
    • Schedule Every 5min: Schedules automatic runs every 5 minutes.
    • Set Config: Configures basic parameters for log reading.
    • Read Error Logs: Executes SSH command to fetch server logs.
    • Wait For All Logs: Ensures all logs are read.
  • Error Processing Flow:
    • Parse Logs: Parses logs and categorizes critical vs. non-critical errors.
    • IF Critical Error: Filters for critical errors.
  • Alert and Ticket Creation:
    • Send Slack Alert: Sends detailed alerts for critical errors via Slack.
    • Create Jira Ticket: Creates a Jira ticket for critical errors.
    • Send Non-Critical Alert: Sends simple alerts for non-critical errors via Slack.

Implementation Guide

  • Import the workflow JSON into n8n.
  • Configure SSH credentials for log access.
  • Set up Slack and Jira integrations with appropriate credentials.
  • Test with a manual trigger and sample log data.
  • Adjust the schedule (e.g., every 5min) and error parsing rules as needed.
  • Monitor alert accuracy and ticket creation.

Technical Dependencies

  • SSH access for reading server logs.
  • Slack API for team notifications.
  • Jira API for bug ticket creation.
  • n8n for workflow automation and scheduling.

Customization Possibilities

  • Adjust the Cron schedule for different intervals (e.g., every 10min).
  • Modify Parse Logs node to refine error categorization rules.
  • Customize Slack alert messages in Send Slack Alert and Send Non-Critical Alert nodes.
  • Enhance Jira ticket details in Create Jira Ticket node (e.g., add priority).
  • Add email notifications for additional alert channels.

n8n Workflow: Error Log Monitor with SSH, Slack Alerts, and Jira Ticket Creation

This n8n workflow provides a robust solution for monitoring error logs on a remote server via SSH. When specific error patterns are detected, it automates the process of notifying a team on Slack and creating a corresponding issue in Jira for tracking and resolution.

What it does

This workflow automates the following steps:

  1. Triggers on a Schedule: The workflow can be configured to run at regular intervals (e.g., every 5 minutes, hourly) to continuously check for new errors. A manual trigger is also available for testing or on-demand execution.
  2. Connects to Remote Server via SSH: It establishes an SSH connection to a specified server.
  3. Executes Log Monitoring Command: It runs a command on the remote server (e.g., tail -n 100 /var/log/syslog | grep "error") to fetch the latest log entries and filter for "error" messages.
  4. Processes Log Output: The raw log output is processed to extract relevant error information.
  5. Conditional Alerting: An 'If' node checks for the presence of specific error keywords or patterns.
  6. Sends Slack Notification: If an error is detected, a detailed alert message is posted to a designated Slack channel, informing the team immediately.
  7. Creates Jira Ticket: Simultaneously, a new issue (e.g., a "Bug" or "Task") is created in Jira, containing the error details, to ensure the issue is formally tracked and assigned for resolution.
  8. Waits (Optional): An optional 'Wait' node can be used to introduce a delay if necessary, for example, to prevent rate limiting on external services or to space out notifications.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • SSH Credentials: SSH credentials (host, username, private key/password) for the remote server where the logs are located.
  • Slack Account: A Slack workspace and an API token or webhook URL for posting messages.
  • Jira Software Account: Access to a Jira Software instance and API credentials (API token or username/password) for creating issues.
  • Basic understanding of shell commands: To configure the SSH command for log fetching and filtering.

Setup/Usage

  1. Import the Workflow:
    • Download the provided JSON file.
    • In your n8n instance, go to "Workflows" and click "New".
    • Click the three dots menu (...) in the top right and select "Import from JSON".
    • Paste the workflow JSON or upload the file.
  2. Configure Credentials:
    • Locate the SSH node and configure your SSH credentials (Host, User, Private Key or Password).
    • Locate the Slack node and configure your Slack credentials (API Token or Webhook URL).
    • Locate the Jira Software node and configure your Jira credentials (API Token or Username/Password).
  3. Customize SSH Command:
    • In the SSH node, adjust the "Command" field to specify the exact log file path and filtering logic you need. For example, to check for "critical" errors in a specific application log:
      tail -n 50 /var/log/my-app/app.log | grep "critical"
      
  4. Customize Error Detection Logic:
    • In the If node, modify the conditions to match the specific error patterns you want to trigger alerts for. You can use regular expressions for advanced matching.
  5. Customize Slack Messages:
    • In the Slack node, adjust the "Text" field to customize the content of your Slack alerts. You can use expressions to include data from previous nodes (e.g., {{ $json.errorDetails }}).
  6. Customize Jira Ticket Creation:
    • In the Jira Software node, configure the "Project Key", "Issue Type", "Summary", and "Description" fields. Use expressions to dynamically populate these fields with error details.
  7. Activate the Schedule Trigger:
    • Enable the Schedule Trigger node and set your desired interval for the workflow to run.
  8. Save and Activate:
    • Save the workflow and activate it to start monitoring your logs.

This workflow provides a powerful foundation for proactive error management, reducing manual intervention and accelerating incident response.

Related Templates

AI multi-agent executive team for entrepreneurs with Gemini, Perplexity and WhatsApp

This workflow is an AI-powered multi-agent system built for startup founders and small business owners who want to automate decision-making, accountability, research, and communication, all through WhatsApp. The β€œvirtual executive team,” is designed to help small teams to work smarter. This workflow sends you market analysis, market and sales tips, It can also monitor what your competitors are doing using perplexity (Research agent) and help you stay a head, or make better decisions. And when you feeling stuck with your start-up accountability director is creative enough to break the barrier 🎯 Core Features πŸ§‘β€πŸ’Ό 1. President (Super Agent) Acts as the main controller that coordinates all sub-agents. Routes messages, assigns tasks, and ensures workflow synchronization between the AI Directors. πŸ“Š 2. Sales & Marketing Director Uses SerpAPI to search for market opportunities, leads, and trends. Suggests marketing campaigns, keywords, or outreach ideas. Can analyze current engagement metrics to adjust content strategy. πŸ•΅οΈβ€β™€οΈ 3. Business Research Director Powered by Perplexity AI for competitive and market analysis. Monitors competitor moves, social media engagement, and product changes. Provides concise insights to help the founder adapt and stay ahead. ⏰ 4. Accountability Director Keeps the founder and executive team on track. Sends motivational nudges, task reminders, and progress reports. Promotes consistency and discipline β€” key traits for early-stage success. πŸ—“οΈ 5. Executive Secretary Handles scheduling, email drafting, and reminders. Connects with Google Calendar, Gmail, and Sheets through OAuth. Automates follow-ups, meeting summaries, and notifications directly via WhatsApp. πŸ’¬ WhatsApp as the Main Interface Interact naturally with your AI team through WhatsApp Business API. All responses, updates, and summaries are delivered to your chat. Ideal for founders who want to manage operations on the go. βš™οΈ How It Works Trigger: The workflow starts from a WhatsApp Trigger node (via Meta Developer Account). Routing: The President agent analyzes the incoming message and determines which Director should handle it. Processing: Marketing or sales queries go to the Sales & Marketing Director. Research questions are handled by the Business Research Director. Accountability tasks are assigned to the Accountability Director. Scheduling or communication requests are managed by the Secretary. Collaboration: Each sub-agent returns results to the President, who summarizes and sends the reply back via WhatsApp. Memory: Context is maintained between sessions, ensuring personalized and coherent communication. 🧩 Integrations Required Gemini API – for general intelligence and task reasoning Supabase- for RAG and postgres persistent memory Perplexity API – for business and competitor analysis SerpAPI – for market research and opportunity scouting Google OAuth – to connect Sheets, Calendar, and Gmail WhatsApp Business API – for message triggers and responses πŸš€ Benefits Acts like a team of tireless employees available 24/7. Saves time by automating research, reminders, and communication. Enhances accountability and strategy consistency for founders. Keeps operations centralized in a simple WhatsApp interface. 🧰 Setup Steps Create API credentials for: WhatsApp (via Meta Developer Account) Gemini, Perplexity, and SerpAPI Google OAuth (Sheets, Calendar, Gmail) Create a supabase account at supabase Add the credentials in the corresponding n8n nodes. Customize the system prompts for each Director based on your startup’s needs. Activate and start interacting with your virtual executive team on WhatsApp. Use Case You are a small organisation or start-up that can not afford hiring; marketing department, research department and secretar office, then this workflow is for you πŸ’‘ Need Customization? Want to tailor it for your startup or integrate with CRM tools like Notion or HubSpot? You can easily extend the workflow or contact the creator for personalized support. Consider adjusting the system prompt to suite your business

ShadrackBy Shadrack
331

Automated YouTube video uploads with 12h interval scheduling in JST

This workflow automates a batch upload of multiple videos to YouTube, spacing each upload 12 hours apart in Japan Standard Time (UTC+9) and automatically adding them to a playlist. βš™οΈ Workflow Logic Manual Trigger β€” Starts the workflow manually. List Video Files β€” Uses a shell command to find all .mp4 files under the specified directory (/opt/downloads/单词卑/A1-A2). Sort and Generate Items β€” Sorts videos by day number (dayXX) extracted from filenames and assigns a sequential order value. Calculate Publish Schedule (+12h Interval) β€” Computes the next rounded JST hour plus a configurable buffer (default 30 min). Staggers each video’s scheduled time by order Γ— 12 hours. Converts JST back to UTC for YouTube’s publishAt field. Split in Batches (1 per video) β€” Iterates over each video item. Read Video File β€” Loads the corresponding video from disk. Upload to YouTube (Scheduled) β€” Uploads the video privately with the computed publishAtUtc. Add to Playlist β€” Adds the newly uploaded video to the target playlist. πŸ•’ Highlights Timezone-safe: Pure UTC ↔ JST conversion avoids double-offset errors. Sequential scheduling: Ensures each upload is 12 hours apart to prevent clustering. Customizable: Change SPANHOURS, BUFFERMIN, or directory paths easily. Retry-ready: Each upload and playlist step has retry logic to handle transient errors. πŸ’‘ Typical Use Cases Multi-part educational video series (e.g., A1–A2 English learning). Regular content release cadence without manual scheduling. Automated YouTube publishing pipelines for pre-produced content. --- Author: Zane Category: Automation / YouTube / Scheduler Timezone: JST (UTC+09:00)

ZaneBy Zane
226

Monitor bank transactions with multi-channel alerts for accounting teams

Enhance financial oversight with this automated n8n workflow. Triggered every 5 minutes, it fetches real-time bank transactions via an API, enriches and transforms the data, and applies smart logic to detect critical, high, and medium priority alerts based on error conditions, amounts, or risk scores. It sends multi-channel notifications via email and Slack, logs all data to Google Sheets, and generates summary statistics for comprehensive tracking. πŸ’°πŸš¨ Key Features Real-time monitoring every 5 minutes for instant alerts. Smart prioritization (Critical, High, Medium) based on risk and errors. Multi-channel notifications via email and Slack. Detailed logging and summary reports in Google Sheets. How It Works Schedule Trigger: Runs every 5 minutes. Fetch Transactions: HTTP request retrieves real-time transaction data. API Error?: If condition for error logic is met, sends error alert. Enrich & Transform Data: Advanced risk calculation enhances data. Critical Alert?: If condition (50% or risk > 8) is met, raises alert. High Priority?: If condition (5% or risk > 7) is met, raises alert. Medium Priority?: If condition is met, raises alert. Log Priority to Sheet: Google Sheets appends critical, high, or medium priority data. Send Critical Email: HTML email to execute sheets append. Send High Priority Email: Email to finance team. Send High Priority Slack: Slack notification to finance team. Send Medium Priority Email: Email to finance team. Merge All Alerts: Combines all alerts for comprehensive tracking. Generate Summary Stats: Code block for analytics. Log Summary to Sheet: Summary statistics storage. Setup Instructions Import the workflow into n8n and configure the bank API credentials in "Fetch Transactions." Set up Google Sheets OAuth2 and replace the sheet ID for logging nodes. Configure Gmail API Key and Slack Bot Token for alerts. Test the workflow with sample transaction data exceeding risk or amount thresholds. Adjust priority conditions (e.g., 50%, 5%, risk > 8) based on your risk policy. Prerequisites Bank API access with real-time transaction data (e.g., https://api.bank.com) Google Sheets OAuth2 credentials Gmail API Key for email alerts Slack Bot Token (with chat:write permissions) Structured transaction data format Google Sheet Structure: Create a sheet with columns: Transaction ID Amount Date Risk Score Priority (Critical/High/Medium) Alert Sent Summary Stats Updated At Modification Options Adjust the "Schedule Trigger" interval (e.g., every 10 minutes). Modify "Critical Alert?" and "High Priority?" conditions for custom thresholds. Customize email and Slack templates with branded messaging. Integrate with fraud detection tools for enhanced risk analysis. Enhance "Generate Summary Stats" with additional metrics (e.g., average risk). Discover more workflows – Get in touch with us

Oneclick AI SquadBy Oneclick AI Squad
333