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.

  1. Upgrade the Wazuh server on CentOS/RHEL/Fedora:
# yum upgrade wazuh-manager
  1. Upgrade the Wazuh server on Debian/Ubuntu:
# apt-get update && sudo apt-get install --only-upgrade wazuh-manager

Upgrade the Wazuh API

  1. Upgrade the Wazuh API on CentOS/RHEL/Fedora:
# yum upgrade wazuh-api
  1. Upgrade the Wazuh API on Debian/Ubuntu:
# apt-get update && sudo apt-get install --only-upgrade wazuh-api

Upgrade the Wazuh agent

  1. Upgrade the Wazuh agent on CentOS/RHEL/Fedora:
# yum upgrade wazuh-agent
  1. Upgrade the Wazuh agent on Debian/Ubuntu:
# apt-get update && sudo apt-get install --only-upgrade wazuh-agent

Upgrade the Wazuh Kibana App

  1. On your terminal, remove the current Wazuh Kibana App:

    # /usr/share/kibana/bin/kibana-plugin remove wazuh
    
  2. Once the process is complete, stop Kibana:

  1. For Systemd:
# systemctl stop kibana
  1. For SysV Init:
# service kibana stop
  1. Remove the current Kibana bundles:
# rm -rf /usr/share/kibana/optimize/bundles
  1. Upgrade the Wazuh Kibana App (this can take a while):

    1. 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"
    
    1. Install the Wazuh App:
    # /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-2.1.1_5.6.5.zip
    
  2. Once the process is complete, restart Kibana:

  1. For Systemd:
# systemctl start kibana
  1. For SysV Init:
# service kibana start