Use this robust n8n workflow template to automate Wazuh custom rule deployment via GitHub push events. Features XML validation, SSH file transfer, and Telegram alerts using the powerful n8n node ecosystem.
Download this n8n workflow template and start using it instantly.
Managing custom security rules in systems like Wazuh requires rigorous testing and controlled deployment. This sophisticated n8n workflow solves the problem of manual deployment by establishing an automated GitOps pipeline. Whenever a new custom XML rule is committed to a designated GitHub repository, this n8n workflow takes over. It ensures the rule is downloaded, uploaded securely via an SSH n8n node, validated on the Wazuh manager, and only if successful, deployed and activated.
This robust n8n template significantly reduces human error, speeds up the response time for new threats, and provides instant notification via Telegram if validation or deployment fails. It demonstrates the power of the n8n platform for mission-critical IT and security automation tasks. The combination of the GitHub n8n trigger, SSH operations, and Telegram notifications makes this a professional-grade automated solution.
This automation initiates with the GitHub n8n trigger, monitoring a specific repository for relevant commit events.
wazuh-logtest -t) to verify the XML structure and rule syntax. To use this powerful n8n workflow, follow these setup steps:
Github Trigger: The starting n8n trigger. It listens for specific events (e.g., push) on a configured repository to initiate the pipeline.
Extract Changed Files (Code n8n node): Custom JavaScript used to parse the incoming GitHub webhook payload, specifically looking for the paths and URLs of new or modified files (the Wazuh rules).
Download Rule (HTTP Request n8n node): Fetches the raw content of the new rule file identified by the previous n8n node, preparing it for secure transfer.
Upload a file & Rule Validation (SSH n8n nodes): These n8n nodes execute remote commands. The first handles file transfer, and the second runs critical validation commands (like ossec-logtest) on the Wazuh server using remote SSH.
Rule Validation check & Final Confirmation check (If n8n nodes): Core logic components of this n8n workflow. They branch the execution flow based on the exit codes or output messages received from the SSH commands, ensuring failed deployments halt safely.
Telegram n8n nodes: Used extensively for instant alerts, providing real-time feedback on successful deployments, validation failures, or service restart issues.
Automate water tracking using n8n. This n8n workflow template uses a scheduled n8n trigger, Google Sheets, OpenAI for personalized reminders, and interactive Slack buttons to manage hydration goals.

Use this powerful n8n workflow to automate proactive voice appointment reminders. It integrates Google Calendar, GPT-4o for scripting, ElevenLabs for audio generation, and Gmail for delivery. Get the best n8n templates for advanced automation.

Automate scheduling using an AI voice agent (Vapi) and Google Calendar. This sophisticated n8n workflow uses custom logic to check real-time availability, apply buffers, and confirm bookings.

Use this powerful n8n workflow to reliably scrape current weather data using Bright Data, extract key metrics (like temperature), and automatically log the results into a Google Sheet for historical analysis. Explore more n8n templates.

Use this comprehensive n8n workflow to automatically fetch 5-day weather forecasts from OpenWeatherMap and deliver formatted, detailed daily reports directly to Telegram. Leverage custom JavaScript logic within an n8n node for perfect formatting.

An Open-source enthusiast driving next-gen Detection Engineering, Threat Hunting, and SOC Automation — turning ideas into tools that empower security teams to detect and respond faster than ever.







































