Upgrade from the same major version
Use these instructions if you are upgrading your Wazuh installation within the same major version. For example, from 2.0.1 to 2.1.1.
Upgrade the Wazuh manager
Before upgrading the Wazuh manager, stop ossec-authd
to ensure that it is not running in the background. Since Wazuh 2.1.0, ossec-authd
should be configured in the auth section of ossec.conf
.
Upgrade the Wazuh server on CentOS/RHEL/Fedora:
# yum upgrade wazuh-manager
Upgrade the Wazuh server on Debian/Ubuntu:
# apt-get update && sudo apt-get install --only-upgrade wazuh-manager
Upgrade the Wazuh API
Upgrade the Wazuh API on CentOS/RHEL/Fedora:
# yum upgrade wazuh-api
Upgrade the Wazuh API on Debian/Ubuntu:
# apt-get update && sudo apt-get install --only-upgrade wazuh-api
Upgrade the Wazuh agent
Upgrade the Wazuh agent on CentOS/RHEL/Fedora:
# yum upgrade wazuh-agent
Upgrade the Wazuh agent on Debian/Ubuntu:
# apt-get update && sudo apt-get install --only-upgrade wazuh-agent
Upgrade the Wazuh Kibana App
On your terminal, remove the current Wazuh Kibana App:
# /usr/share/kibana/bin/kibana-plugin remove wazuh
Once the process is complete, stop Kibana:
For Systemd:
# systemctl stop kibana
For SysV Init:
# service kibana stop
Remove the current Kibana bundles:
# rm -rf /usr/share/kibana/optimize/bundles
Upgrade the Wazuh Kibana App (this can take a while):
Increase the default Node.js heap memory limit to prevent out of memory errors when installing the Wazuh App.
Set the limit as follow:
# export NODE_OPTIONS="--max-old-space-size=3072"
Install the Wazuh App:
# /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp.zip
Once the process is complete, restart Kibana:
For Systemd:
# systemctl start kibana
For SysV Init:
# service kibana start