SIEM Integration Guide: USB Backup System
System Overview
The USB Backup System is an automated backup solution that monitors USB disks and performs incremental backups of VeeamBackup files. This guide provides technical details for SIEM integration and log parsing.
Syslog Configuration
Connection Details
Message Format
Example:
Priority Calculation
- Facility: 16 (local0) × 8 = 128
- Severity Levels:
- ERROR: 3 → Priority 131 (128+3)
- WARNING: 4 → Priority 132 (128+4)
- INFO: 6 → Priority 134 (128+6)
Event Categories & Message Patterns
1. Backup Lifecycle Events
Backup Operations
| Event |
Severity |
Message Pattern |
Description |
| Start |
INFO |
Backup operation started |
Backup process initiated |
| Success |
INFO |
Backup operation completed successfully |
Backup finished successfully |
| Skip |
INFO |
Backup skipped - no changes detected |
No files needed copying |
| Auto-trigger |
INFO |
Auto-backup triggered - new files detected |
Automatic backup started |
File Operations
| Event |
Severity |
Message Pattern |
Description |
| File Copy |
INFO |
Copied backup file: {filename} |
Individual file copied |
| Config Sync |
INFO |
Copied VeeamConfigBackup: {count} files |
Config backup completed |
| File Cleanup |
INFO |
Removed for overwrite: {filename} |
Old file removed before copy |
| Copy Failure |
ERROR |
Failed to copy backup file: {filename} |
File copy failed |
Progress Tracking
| Event |
Severity |
Message Pattern |
Description |
| Daily Start |
INFO |
Starting backup for date: {YYYY-MM-DD} |
Processing specific date |
| Daily Complete |
INFO |
Completed backup for date {date}: {copied} copied, {skipped} skipped |
Daily summary |
2. System Status Events
Mount/Unmount Operations
| Event |
Severity |
Message Pattern |
Description |
| Mount Success |
INFO |
USB-Monitor: Successfully mounted {disk_label} |
USB disk connected |
| Unmount |
INFO |
USB-Monitor: Disk unmounted successfully |
USB disk removed |
| Stale Mount |
WARNING |
USB-Monitor: Stale mount detected |
Hardware disconnected unexpectedly |
| Mount Error |
ERROR |
USB-Monitor: Failed to mount backup disk |
Mount operation failed |
Process Management
| Event |
Severity |
Message Pattern |
Description |
| Lock Acquired |
INFO |
Lock acquired (PID: {process_id}) |
Process started |
| Lock Released |
INFO |
Lock released |
Process completed |
| Collision Avoided |
INFO |
Auto-backup skipped - backup already running |
Prevented parallel execution |
3. Warnings & Errors
Administrative Warnings
| Event |
Severity |
Message Pattern |
Description |
| Friday Alert |
WARNING |
Friday warning: No USB backup disk mounted before weekend |
Weekend preparation reminder |
| Target Missing |
WARNING |
Auto-backup skipped - target not mounted |
USB disk not connected |
| Disk Full |
WARNING |
Disk usage would exceed 95% - stopping for safety |
Storage capacity warning |
Critical Errors
| Event |
Severity |
Message Pattern |
Description |
| System Failure |
ERROR |
Backup failed during scan and analyze |
Core system error |
| Configuration Error |
ERROR |
Failed to load configuration |
Config file issues |
| Hardware Error |
ERROR |
All unmount attempts failed |
Hardware malfunction |
Parsing Recommendations
Primary Regex Pattern
Capture Groups:
- Priority (131-134)
- Timestamp (ISO 8601)
- Hostname
- Application (usb-backup)
- Message content
Event-Specific Patterns
Backup Operations
Mount Events
Structured Data Fields
Recommended JSON Schema
SIEM Rules & Alerting
Critical Alert Conditions
Immediate Response Required
Business Process Monitoring
Performance Metrics Dashboard
Key Performance Indicators
| Metric |
Query Pattern |
Frequency |
| Backup Success Rate |
"completed successfully" / "operation started" * 100 |
Daily |
| Data Throughput |
Extract size from "Copied.*files \((\d+(?:\.\d+)?)(TB|GB)" |
Daily |
| Average Duration |
Time between "started" and "completed" |
Daily |
| Disk Utilization |
Extract from "Space Utilization: (\d+)%" |
Per backup |
| Error Rate |
COUNT(severity="ERROR") / COUNT(*) |
Daily |
Capacity Planning
| Metric |
Pattern |
Purpose |
| Files Processed |
"(\d+) copied, (\d+) skipped" |
Growth trending |
| Disk Rotation |
"mounted (HDD-\d+)" frequency |
Hardware utilization |
| Weekend Accumulation |
Files between Friday-Monday |
Capacity planning |
Business Rules & SLAs
Service Level Expectations
- Backup Frequency: Daily (within 24-hour window)
- Maximum Failure Rate: <5% monthly
- Recovery Time: <30 minutes for manual intervention
- Disk Capacity Warning: 90% utilization threshold
- Weekend Preparation: Friday 11 AM reminder system
Operational Procedures
- Daily Health Check: Verify backup completion message
- Weekly Capacity Review: Monitor disk utilization trends
- Monthly Hardware Rotation: Track disk usage patterns
- Quarterly Failure Analysis: Review error patterns and system improvements
Testing & Validation
Sample Log Entries for Parser Testing
Validation Queries
Contact Information
For technical questions about this integration:
- System Administrator: [Your Contact]
- Log Format Changes: Version-controlled, advance notification provided
- Emergency Escalation: Monitor for ERROR severity events
Document Version: 1.0
Last Updated: 2025-08-23
Next Review: 2025-11-23