Introduction
The Wazuh Dashboard provides a comprehensive interface for viewing and managing agent configurations. Configuration can be applied at the individual agent level or through group-based policies, enabling centralized management of agent settings across your infrastructure.Accessing Agent Configuration
Agent configuration can be accessed through multiple paths:Individual Agent Configuration
- Navigate to the Endpoints section
- Select an agent from the table
- Click on the “Configuration” tab
/agents?tab=configuration&agent={agent_id}
Configuration View
The configuration interface displays:- Current active configuration
- Configuration source (local or group-based)
- Module-specific settings
- Synchronization status
configuration-main.js:1
Configuration Hierarchy
Configuration Sources
Agent configuration is determined by the following hierarchy (in order of precedence):- Local Agent Configuration: Settings in the agent’s local
ossec.conffile - Group Configuration: Settings from assigned groups (most specific to least specific)
- Default Group: Settings from the “default” group
- Manager Defaults: Built-in default values
Group-Based Configuration
Groups enable centralized configuration management:- Agents can belong to multiple groups
- Configuration from all groups is merged
- More specific groups override less specific ones
- Group assignments can be modified through the Dashboard
Managing Agent Groups
Viewing Group Assignments
Agent group memberships are displayed:- In the agents table (“Group” column)
- In the agent details view
- In the agent welcome screen
Modifying Group Assignments
Single Agent
- Select an agent from the agents table
- Click the “Actions” menu
- Select “Edit groups”
- Modify group assignments
- Save changes
edit-groups-modal.tsx:1
Multiple Agents (Bulk Operation)
- Select multiple agents using checkboxes
- Click “Edit groups” from the global actions menu
- Choose operation:
- Add groups: Add groups to selected agents
- Remove groups: Remove groups from selected agents
- Set groups: Replace all groups with specified groups
- Confirm changes
edit-groups-modal.tsx:1 (global actions)
Group Assignment Permissions
Modifying group assignments requires:- Action:
group:modify_assignments - Resource:
group:id:*
Configuration Modules
The Wazuh agent supports configuration for various security modules:Log Collector
Configures which log files and sources the agent monitors:- Log file locations
- Log format specifications
- Filtering rules
- Frequency of log reading
File Integrity Monitoring (FIM)
Defines files and directories to monitor for changes:- Monitored directories and files
- Check frequency
- Attributes to monitor (permissions, ownership, content)
- File exclusions
Security Configuration Assessment (SCA)
Configures policy scans and compliance checks:- Enabled policies
- Scan frequency
- Scan on start behavior
- Custom policy files
Vulnerability Detection
Configures vulnerability scanning behavior:- Detection enablement
- Scan intervals
- Package managers to monitor
- CVE database updates
System Inventory (Syscollector)
Configures system inventory data collection:- Hardware information (CPU, memory, serial numbers)
- Operating system details
- Installed packages
- Network interfaces
- Running processes
- Open ports
syscollector-metrics.tsx:1
Rootcheck
Configures rootkit and malware detection:- Scan frequency
- Rootkit databases
- System audit checks
Command Monitoring
Configures periodic command execution and monitoring:- Commands to execute
- Execution frequency
- Output handling
Configuration Synchronization
Sync Mechanism
Configuration synchronization ensures agents receive updates:- Configuration Change: Administrator modifies group or shared configuration
- Manager Notification: Manager marks affected agents for synchronization
- Sync Request: Agent requests updated configuration on next connection
- Download: Agent downloads and applies new configuration
- Restart: Agent modules reload with new settings
Sync Status Monitoring
Monitor configuration synchronization:- Synced: Agent has the latest configuration
- Not Synced: Agent has pending configuration updates
- Syncing: Synchronization in progress
- In the agents table
- In the agent details view
- Through the agent sync component:
agent-synced.tsx:1
Forcing Synchronization
To force configuration synchronization:- Restart the agent service
- Wait for the next keep-alive interval
- Verify sync status in the Dashboard
Configuration Validation
Server-Side Validation
The Wazuh manager validates configuration before distribution:- XML syntax validation
- Schema validation
- Value range checks
- Dependency verification
Agent-Side Validation
Agents validate received configuration:- XML parsing
- Module compatibility checks
- Permission verification
- Resource availability
- Rejected by the agent
- Logged in agent logs
- Reported to the manager
Agent Module Version Support
Version Compatibility
Different agent versions support different modules and features:- The Dashboard checks agent version before displaying module options
- Unsupported modules display version requirement prompts
- Feature availability is validated:
prompt-agent-feature-version.tsx:1
Module Support Detection
The Dashboard uses thehasAgentSupportModule() service to:
- Detect supported modules based on agent version
- Hide unsupported features from the interface
- Display appropriate prompts when features are unavailable
prompt-agent-no-support-module.tsx:1
Configuration Best Practices
Group Organization
Organize agents into logical groups:- By Function: web-servers, database-servers, workstations
- By Environment: production, staging, development
- By Location: datacenter1, office-ny, cloud-aws
- By Compliance: pci-dss, hipaa, gdpr
Configuration Management
- Use group-based configuration for consistency
- Avoid agent-local configuration when possible
- Document group purposes and settings
- Test configuration changes on a subset before wide deployment
Security Considerations
- Restrict configuration modification permissions
- Audit configuration changes
- Use least privilege for agent permissions
- Validate configurations before deployment
Performance Tuning
- Adjust scan frequencies based on system load
- Balance security coverage with performance impact
- Monitor agent resource usage after configuration changes
- Use interval settings appropriate for the environment
Common Configuration Scenarios
Web Server Configuration
Group:webservers
Key settings:
- Monitor web server logs (Apache, Nginx)
- FIM on web root directories
- SCA policies for web server hardening
- Command monitoring for web service status
Database Server Configuration
Group:database-servers
Key settings:
- Monitor database logs (MySQL, PostgreSQL, Oracle)
- FIM on database configuration files
- SCA policies for database hardening
- Rootcheck for database-specific threats
Workstation Configuration
Group:workstations
Key settings:
- Monitor system logs (Windows Event Log, syslog)
- FIM on critical system directories
- SCA policies for workstation compliance
- Vulnerability detection for installed software
Cloud Instance Configuration
Group:cloud-instances
Key settings:
- Monitor cloud provider logs (CloudTrail, Azure Activity)
- FIM on application directories
- Syscollector for inventory tracking
- Vulnerability detection for package updates
Configuration Troubleshooting
Configuration Not Applied
Symptoms:- Agent sync status: “Not Synced”
- Expected settings not active
- Modules not functioning as configured
- Check agent sync status
- Verify group assignments
- Review agent logs for configuration errors
- Manually trigger synchronization
- Restart agent service
Module Not Working
Symptoms:- Module appears disabled
- No data from configured module
- Module prompt displayed
- Verify agent version supports the module:
prompt-agent-feature-version.tsx:1 - Check module configuration syntax
- Review agent logs for module errors
- Verify required permissions (file access, command execution)
- Check resource availability (disk space, memory)
Configuration Conflicts
Symptoms:- Unexpected configuration behavior
- Settings differ from group configuration
- Modules behaving inconsistently
- Review configuration hierarchy
- Check for local agent configuration overrides
- Verify group assignment order
- Examine merged configuration on agent
- Remove conflicting local settings
Permission Issues
Symptoms:- Cannot modify group assignments
- Configuration changes rejected
- “Edit groups” button disabled
- Verify user has
group:modify_assignmentspermission - Check resource-level permissions
- Review RBAC configuration
- Contact administrator for permission grants
Advanced Configuration
Labels
Assign labels to agents for better organization:- Enhanced filtering in the Dashboard
- Custom reporting and analytics
- Integration with external systems
Client Buffer
Configure agent buffering for network resilience:- Buffer enablement
- Queue size
- Event rate limiting
agent-stats.tsx:1
Enrollment Configuration
Configure agent enrollment behavior:Configuration Export and Backup
Exporting Configurations
While not directly available in the Dashboard, configurations can be:- Backed up from the manager filesystem
- Version controlled (Git)
- Exported through API calls
- Documented in external systems
Configuration Locations
On the Wazuh manager:- Shared Configuration:
/var/ossec/etc/shared/ - Group Configurations:
/var/ossec/etc/shared/<group_name>/ - Agent Configuration:
/var/ossec/etc/shared/<group_name>/agent.conf