Runbooks¶
Runbooks are detailed step-by-step operational procedures for Wazuh SIEM maintenance tasks. Each runbook includes:
- Complete command sequences
- Validation checks at each step
- Troubleshooting procedures
- Rollback strategies
- No-go safety gates
📖 Available Runbooks¶
Wazuh Upgrades¶
- Wazuh Upgrade AIO Ubuntu - Complete upgrade procedure for Wazuh All-in-One installations on Ubuntu using APT
Agent Management¶
- Wazuh Agent Group Management - Managing agent groups, configurations, and deployments
Templates¶
- Runbook Template - Standard template for creating new runbooks
🎯 How to Use Runbooks¶
Before You Start¶
- Read the entire runbook first
- Ensure all prerequisites are met
- Have the corresponding checklist ready
- Verify you're within the maintenance window
During Execution¶
- Follow steps in exact order
- Validate each step before proceeding
- Document any deviations
- Stop if any no-go gate is triggered
- Capture health snapshots (pre and post)
After Completion¶
- Run all post-validation checks
- Document any issues encountered
- Update the change ticket
- Notify stakeholders
- Provide feedback for runbook improvements
🛑 No-Go Gates (Safety Rules)¶
DO NOT PROCEED if any of these conditions are present:
- ❌ Disk usage > 90%
- ❌ Any service not in
active (running)state - ❌ No valid backup/snapshot available
- ❌ Change ticket not approved
- ❌ Outside maintenance window
- ❌ Missing required credentials or access
- ❌ Critical errors in health check
📸 Health Snapshot Requirements¶
Every runbook execution requires capturing system state:
Pre-Change Snapshot¶
# Component versions
dpkg -l | grep -E 'wazuh-(indexer|manager|dashboard)|filebeat'
# Service status
systemctl status wazuh-indexer wazuh-manager wazuh-dashboard filebeat
# Disk usage
df -h
# Cluster health
curl -sk -u admin:admin https://127.0.0.1:9200/_cluster/health?pretty
# Recent errors
journalctl -u wazuh-manager -n 50 --no-pager -p err
Post-Change Snapshot¶
Run the same commands after the change and compare results.
🔧 Common Validation Commands¶
Service Status¶
Version Check¶
Cluster Health¶
API Check¶
Agent Status¶
📝 Contributing New Runbooks¶
When creating a new runbook:
- Use the Runbook Template
- Include all required sections:
- Purpose and scope
- Prerequisites
- No-go gates
- Step-by-step procedure
- Validation checks
- Rollback procedure
- Troubleshooting
- Create a corresponding checklist
- Test in non-production environment
- Submit via Pull Request with rationale
🔗 Related Resources¶
- Checklists - Ticket templates synchronized with runbooks
- Upgrade Guides - Version-specific upgrade procedures
- Reference - Quick command references
- Official Wazuh Documentation