Wazuh manager
The Wazuh manager in Wazuh 5.x introduces changes to its configuration, installation layout, and capabilities. Although you can recreate supported settings from a Wazuh 4.x deployment, Wazuh 5.x removes, relocates, or replaces several configuration sections, options, and features.
Deploy a new Wazuh manager and recreate the supported configuration from the Wazuh 4.x deployment. Don't copy Wazuh 4.x configuration files directly into the new installation, because they contain settings that Wazuh 5.x no longer supports.
You can recreate the following Wazuh manager configuration in Wazuh 5.x:
Wazuh manager configuration
Internal configuration options
Wazuh manager API configuration
Cluster configuration
You can't recreate custom rules, decoders, and CDB lists by copying files into the Wazuh manager installation. In Wazuh 5.x, the Wazuh content management system manages custom detection content. Wazuh 5.x stores CDB lists as key-value databases (KVDBs). Refer to the Data analysis documentation to learn how to create and manage custom rules, decoders, and lists. Wazuh 5.x decoders write only Wazuh Common Schema (WCS) fields and temporary fields.
Wazuh manager configuration
The Wazuh manager configuration defines how the manager operates, including agent communication, authentication, vulnerability detection, indexer connectivity, clustering, and other manager services.
Wazuh 4.x and Wazuh 5.x use different configuration structures and supported settings. Therefore, the Wazuh 4.x configuration serves as a reference for recreating the required settings in the corresponding Wazuh 5.x configuration files.
The primary Wazuh manager configuration file has changed between Wazuh 4.x and Wazuh 5.x:
Wazuh 4.x |
Wazuh 5.x |
|---|---|
|
|
Configuration changes
Review the following changes before you recreate the Wazuh manager configuration. Wazuh 5.x uses <wazuh_config> as the root element of wazuh-manager.conf instead of <ossec_config>. The file must have exactly one <wazuh_config> root element, and each section can appear only once. Wazuh 5.x accepts only the <global>, <logging>, <remote>, <auth>, <wdb>, <vulnerability-detection>, <indexer>, <task-manager>, and <cluster> sections. Any other section causes a startup error.
Unsupported and changed settings
Wazuh 5.x removes, relocates, or changes the following Wazuh 4.x sections and options. Use the table to decide which values from the Wazuh 4.x configuration to set in the Wazuh 5.x file. The Wazuh manager doesn't start if wazuh-manager.conf contains an option that Wazuh 5.x doesn't support.
Wazuh 4.x setting |
Wazuh 5.x change |
|---|---|
|
Removed. Wazuh 5.x has no replacement for this section. |
|
Not supported. Remove it from the Wazuh 5.x configuration. |
|
Active Response configurations are no longer defined in the Wazuh manager configuration. Recreate the required response actions through the Active Response page on the Wazuh dashboard. For more information, see the Active response documentation. |
|
Commands are now configured through the Active Response page on the Wazuh dashboard. |
|
Removed. To send findings to Slack, PagerDuty, Jira, or a webhook, create an Alerting monitor with a Notifications channel. |
|
Removed. To send findings by email, create an Alerting monitor with an email channel in Notifications. |
|
Removed. Schedule reports in the Reporting module. |
|
Removed. Use Security Configuration Assessment (SCA). |
|
Not supported. Remove it from the Wazuh 5.x configuration. |
|
Not supported. Remove it from the Wazuh 5.x configuration. |
|
Custom rules, decoders, and lists are managed through the Wazuh content management system in Wazuh 5.x. For more information, refer to the Data analysis documentation. |
|
The Wazuh agent now handles rootcheck. |
|
The Wazuh agent now handles File Integrity Monitoring (FIM). |
|
The Wazuh agent now handles Security Configuration Assessment (SCA). |
|
The Wazuh agent now handles Syscollector. |
|
The Wazuh agent now handles log collection. |
|
Wazuh 5.x supports only |
Second |
Not supported. Wazuh 5.x accepts one |
|
Wazuh 5.x doesn't support |
|
Wazuh 5.x doesn't support |
|
Wazuh 5.x doesn't support |
|
Wazuh 4.4 to 4.7 setting. Not supported. Remove it from the Wazuh 5.x configuration. |
|
Wazuh 5.x doesn't support |
|
Wazuh 5.x doesn't support |
|
Moved to the |
Other configuration files
Wazuh 5.x also changes the internal options, Wazuh manager API, and cluster configuration files. Recreate your customizations in the following Wazuh 5.x files.
Wazuh 4.x file |
Wazuh 5.x file |
Notes |
|---|---|---|
|
|
Set only the options that Wazuh 5.x still reads. Wazuh 5.x ignores removed options, and options under their Wazuh 4.x names, without a warning. Rename the following options:
|
|
|
Wazuh 5.x doesn't support |
|
|
Use the Wazuh 5.x file as the base. Reapply only the interval values that you changed. Edit only this file, not the copy under |
Recreate the Wazuh manager configuration
Perform the following steps to recreate the Wazuh manager configuration in the Wazuh 5.x deployment.
Stop the Wazuh 5.x manager service:
# systemctl stop wazuh-manager
Review the existing Wazuh 4.x manager configuration in
/var/ossec/etc/ossec.conf.Recreate the supported configuration manually in
/etc/wazuh-manager/wazuh-manager.conf.Review and update any settings affected by changes in Wazuh 5.x, including renamed file paths and manager-side capabilities.
Validate the recreated configuration. The command reports every option that Wazuh 5.x doesn't support, each with its location in the file. Fix them and run the command again until it reports no errors before you start the Wazuh manager:
# /var/wazuh-manager/bin/wazuh-manager-conf -f /etc/wazuh-manager/wazuh-manager.conf validate
Start the Wazuh 5.x manager service:
# systemctl start wazuh-manager
Verify that the Wazuh manager starts successfully and that the manager log reports no configuration errors.