Overview
After installing SOC components, proper configuration is essential for effective security operations. This guide covers initial configuration, integration points, data flow setup, and log forwarding rules.Configuration Philosophy
Infrastructure as Code: All configurations should be version-controlled and repeatable. Use configuration management tools (Ansible, Terraform, PyInfra) to maintain consistency across environments.
Configuration Priorities
- Security first: Enable encryption, authentication, and authorization
- Integration: Ensure components communicate correctly
- Performance: Optimize for expected load and scale
- Observability: Configure logging and monitoring of SOC itself
- Maintainability: Document all custom configurations
Component Configuration
Elasticsearch Configuration
Elasticsearch Configuration
Core Configuration
File:/etc/elasticsearch/elasticsearch.ymlJVM Heap Configuration
File:/etc/elasticsearch/jvm.optionsIndex Templates for SOC Data
Create index templates for different log types:Index Lifecycle Policy
Manage index retention and performance:Adjust retention periods based on compliance requirements and storage capacity. Common retention: 90 days hot/warm, up to 7 years archived.
Wazuh Manager Configuration
Wazuh Manager Configuration
Logstash Configuration
Logstash Configuration
Snort/Suricata IDS Configuration
Snort/Suricata IDS Configuration
Zabbix Configuration
Zabbix Configuration
Server Configuration
File:/etc/zabbix/zabbix_server.confAgent Configuration (on monitored hosts)
File:/etc/zabbix/zabbix_agentd.confSOC-Specific Monitoring Templates
Monitor SOC infrastructure itself:- Elasticsearch cluster health
- Wazuh manager status and agent count
- Logstash pipeline throughput
- IDS sensor CPU and packet drop rate
Prometheus Configuration
Prometheus Configuration
TheHive Configuration
TheHive Configuration
Integration Points
Data Flow Configuration
The SOC architecture follows this data flow:
- Endpoints → IDS/Agents → Logstash → Elasticsearch → Wazuh Dashboard
- Alerts (high severity) → TheHive → Cortex → Automated Response
- Infrastructure metrics → Zabbix/Prometheus → Dashboards
Integration Matrix
Log Forwarding Rules
Wazuh Agent Log Collection
On endpoints - configure what logs to collect:Syslog Forwarding to Logstash
On network devices (firewalls, switches, routers):Filebeat for Application Logs
File:/etc/filebeat/filebeat.yml
Security Configuration
SSL/TLS Certificates
1
Generate CA Certificate
2
Generate Component Certificates
3
Distribute Certificates
- Install CA certificate on all SOC components
- Configure each component to use its certificate
- Enable TLS/SSL in component configurations
Authentication and Authorization
Implement role-based access control (RBAC) for all SOC components:
- SOC Analysts: Read access to dashboards, create/update incidents
- SOC Engineers: Configure rules, manage integrations
- SOC Managers: Full administrative access, reporting
- Auditors: Read-only access to all data
Testing and Validation
End-to-End Data Flow Test
1
Generate Test Event on Endpoint
2
Verify in Wazuh Manager
3
Verify in Elasticsearch
4
Verify in Wazuh Dashboard
Access Wazuh dashboard and search for “SOC data flow” in Discover view.
IDS Alert Test
Performance Tuning
Elasticsearch Optimization
- Refresh interval: Increase for bulk indexing (30s instead of 1s)
- Bulk size: Optimize Logstash batch size (125-500)
- Shard sizing: Target 20-50 GB per shard
- Replica timing: Add replicas after initial data load
Wazuh Manager Optimization
Configuration Management
Best Practice: Store all configurations in Git repository
- Track changes over time
- Enable rollback if configuration causes issues
- Document why configuration changes were made
- Review configuration changes through pull requests
Example Repository Structure
Configuration Checklist
Before going to production:- All components configured and tested individually
- Integrations between components verified
- SSL/TLS enabled for all network communication
- Authentication and RBAC configured
- Log forwarding from all sources working
- Data flow end-to-end tested
- Alert rules tuned and false positives minimized
- Dashboards created for SOC analysts
- Performance tuning completed
- Configurations version-controlled in Git
- Backup and restore procedures tested
- Monitoring of SOC infrastructure enabled
- Documentation updated with final configurations
- Team trained on configuration changes
Next Steps
With configuration complete:- Begin operational tuning and baseline establishment
- Develop playbooks for common security events
- Train SOC team on using the platform
- Establish metrics and KPIs for SOC effectiveness
- Plan regular configuration reviews and updates
Configuration is an iterative process. Plan for continuous tuning based on operational experience, new threats, and changing infrastructure.
