Splunk® User Behavior Analytics

Install and Upgrade Splunk User Behavior Analytics

Acrobat logo Download manual as PDF


This documentation does not apply to the most recent version of Splunk® User Behavior Analytics. For documentation on the most recent version, go to the latest release.
Acrobat logo Download topic as PDF

Upgrade a distributed AMI or OVA installation of Splunk UBA

Before upgrading Splunk UBA in a distributed deployment, be sure you have verified the Upgrade Splunk UBA prerequisites. Make sure that the prerequisites are verified on each server in the distributed deployment.

Distributed environment upgrade steps

Install Splunk UBA 5.0.5 on the management node only. The upgrade script will update all relevant files on the other Splunk UBA nodes. Ensure that Splunk UBA is running before you upgrade.

To obtain and install Splunk UBA 5.0.5, perform the following tasks on the management node:

  1. On each Splunk UBA node, run the following command to install or upgrade libjson-perl:
    sudo apt-get install libjson-perl
  2. Obtain the Splunk UBA Software Update and download or move the file to the /home/caspida directory on the Splunk UBA management node. Select version 5.0.5 from the drop-down list. The downloadable archive file is named splunk-uba-software-upgrade-package_505.tgz.
  3. Extract the archive with the following command:
    tar xfz /home/caspida/splunk-uba-software-upgrade-package_505.tgz -C /home/caspida

    The following files are extracted:

    • splunk-uba-software-update-000059-505.tgz
    • splunk-uba-software-update-000059-505.tgz.md5sum
    • uba-ext-pkgs-5.0.5.tgz
    • uba-ext-pkgs-5.0.5.tgz.md5sum
  4. Extract the software update package in the /home/caspida directory:
    tar xfz /home/caspida/splunk-uba-software-update-000059-505.tgz -C /home/caspida
  5. Apply the patch with the following command:
    /home/caspida/patch_uba_505/bin/utils/patch_uba.sh -p /home/caspida/patch_uba_505 -e /home/caspida/uba-ext-pkgs-5.0.5.tgz
    The command installs the new Splunk UBA software, restarts Splunk UBA, and then restarts the data sources.

Apply security patches on Ubuntu

The Splunk UBA AMI and OVA images use Ubuntu as the operating system. Perform the following tasks to apply the latest security patches to your Ubuntu operating system:

Applying the security patches can take up to one hour.

  1. Log in to the Splunk UBA management node as the caspida user.
  2. Run the following command to stop Splunk UBA and all services:
    /opt/caspida/bin/Caspida stop-all
  3. On each Splunk UBA node, perform the following tasks:
    1. Log in as the caspida user.
    2. Run the following command to add the public keys required by apt:
      curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
    3. Run the following commands to install latest unattended-upgrades package:
      sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6A030B21BA07F4FB
      sudo apt update
      sudo apt install unattended-upgrades
      

      If you see the following prompt, select keep the local version currently installed:

      What do you want to do about modified configuration file 50unattended-upgrades?
    4. Run the following command:
      sudo apt autoremove
    5. Edit the /etc/apt/apt.conf.d/50unattended-upgrades file and un-comment the following line:

      Skip this step if you have previously applied security patches to your Ubuntu environment following these instructions.

      "${distro_id}:${distro_codename}-security";
      Leave all other lines commented out.
    6. Run the following command:
      sudo unattended-upgrade -d
    7. Edit the /etc/init.d/zookeeper-server file and change su to runuser in all of the following lines:

      Skip this step if you have previously applied security patches to your Ubuntu environment following these instructions.

      Before:

      su -s /bin/bash zookeeper -c "${DAEMON_SCRIPT} start"
      su -s /bin/bash zookeeper -c "${DAEMON_SCRIPT} stop"
      su -s /bin/bash zookeeper -c "zookeeper-server-initialize $*"
      

      After:

      runuser -s /bin/bash zookeeper -c "${DAEMON_SCRIPT} start"
      runuser -s /bin/bash zookeeper -c "${DAEMON_SCRIPT} stop"
      runuser -s /bin/bash zookeeper -c "zookeeper-server-initialize $*"
      
    8. Reboot the system:
      sudo reboot
  4. On the Splunk UBA management node, run the following command to start Splunk UBA and all services:
    /opt/caspida/bin/Caspida start-all

Next steps

Verify a successful upgrade of Splunk UBA.

Last modified on 30 November, 2022
PREVIOUS
Upgrade a single node RHEL, CentOS, or Oracle Linux installation of Splunk UBA
  NEXT
Upgrade a distributed RHEL, CentOS, or Oracle Linux installation of Splunk UBA

This documentation applies to the following versions of Splunk® User Behavior Analytics: 5.0.5


Was this documentation topic helpful?


You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters