Upgrade from the same major version

Use these instructions if you are upgrading your Wazuh installation within the same major version. As an example, from 2.0.1 to 2.1.1.

Upgrade Wazuh manager

Before upgrading the Wazuh manager, stop ossec-authd in case that it is running in background. Since Wazuh 2.1.0, ossec-authd should be configured in the auth section of ossec.conf.

  1. Upgrade Wazuh server on CentOS/RHEL/Fedora:

# yum upgrade wazuh-manager
  1. Upgrade Wazuh server on Debian/Ubuntu:

# apt-get update && sudo apt-get install --only-upgrade wazuh-manager

Upgrade Wazuh API

  1. Upgrade Wazuh API on CentOS/RHEL/Fedora:

# yum upgrade wazuh-api
  1. Upgrade Wazuh API on Debian/Ubuntu:

# apt-get update && sudo apt-get install --only-upgrade wazuh-api

Upgrade Wazuh agent

  1. Upgrade Wazuh agent on CentOS/RHEL/Fedora:

# yum upgrade wazuh-agent
  1. Upgrade Wazuh agent on Debian/Ubuntu:

# apt-get update && sudo apt-get install --only-upgrade wazuh-agent

Upgrade 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 completed, you must stop Kibana with:

  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 Wazuh Kibana App (this can take a while):

    4.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"
    

    4.2) Install Wazuh App:

    # /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp.zip
    
  2. Once the process is completed, you must start Kibana again with:

  1. For Systemd:

# systemctl start kibana
  1. For SysV Init:

# service kibana start