Splunk® Phantom (Legacy)

Install and Upgrade Splunk Phantom

Acrobat logo Download manual as PDF


This documentation does not apply to the most recent version of Splunk® Phantom (Legacy). For documentation on the most recent version, go to the latest release.
Acrobat logo Download topic as PDF

Upgrade a Splunk Phantom cluster

Perform the following tasks to upgrade your Splunk Phantom cluster.

  1. Make sure you have read Splunk Phantom upgrade overview and prerequisites.
  2. On each node, Upgrade the operating system and installed packages.
  3. On each node, log in to the operating system as either the root user or a user with sudo privileges and install the Splunk Phantom repositories and signing keys packages.
  4. On each node, one node at a time, Upgrade the cluster node.
  5. If your cluster uses a Shared Services server made with make_server_node.pyc, perform the additional steps for clusters with a Shared Services server.

Upgrade the operating system and installed packages

  1. Log in to the Splunk Phantom instance's operating system as either the root user or a user with sudo privileges.
  2. If you are using automation to run ibackup.pyc to make backups, cancel backups that could run during your upgrade window. For example, if you have configured a cron job to run ibackup.pyc, disable that cron job.
  3. Stop all Splunk Phantom services. For example, as the root user:
    /opt/phantom/bin/stop_phantom.sh
  4. Delete the file /tmp/phantomOvaUpgrade.
    rm -f /tmp/phantomOvaUpgrade
  5. Clear the YUM caches. For example, as the root user:
    yum clean all
  6. Update the operating system and installed packages. For example, as the root user:
    yum update --exclude=nginx
  7. If a kernel update was included in your operating system updates, restart the operating system. For example, as the root user:
    reboot
    If you did not need to restart the operating system, restart Splunk Phantom. For example, as the root user:
    /<PHANTOM_HOME>/bin/start_phantom.sh

Upgrade the cluster node

Do not attempt to upgrade all the nodes at the same time. Upgrade a single node and bring it back online before proceeding to the next cluster node.

When you have upgraded N+1 nodes, where N is equal to half of the number of nodes in your cluster, database migrations will be applied. This can take a significant amount of time, depending on the amount of data in your database and the version of Splunk Phantom from which you're upgrading.

  1. Log in to the operating system as either the root user or a user with sudo privileges.
  2. Run the upgrade script. For example, as the root user:
    /opt/phantom/bin/phantom_setup.sh upgrade
    If you don't want to upgrade your installed apps at during the upgrade, you can use the --without-apps option.
    /opt/phantom/bin/phantom_setup.sh upgrade --without-apps

    You will be prompted during this script for your Splunk Phantom Community portal login.

  3. Once all cluster nodes have been upgraded, reindex playbook data. From Main Menu > Administration > Administration Settings > Search Settings, select Playbooks from the drop-down menu, then click the Reindex Search Data button.

Additional steps for clusters with a Shared Services server or Splunk Phantom node converted to the PostgreSQL server

A Shared Services server is a single Splunk Phantom instance that has been converted to provide the following services for a Splunk Phantom cluster :

If your cluster has separated these services to their own servers and does not use a single Shared Services server created by the make_server_node.pyc script, or does not use a Splunk Phantom instance converted to be the PostgreSQL server this section does not apply.

In Splunk Phantom 4.8, SSL certificates and keys have been moved to <PHANTOM_HOME>/data/ssl/. If your cluster uses a single Shared Services server created with make_server_node.pyc, you need to move your SSL keys and certificates in order to use backup and restore functions.

On the Shared Services server, perform the following tasks as either as the the root user or a user with sudo permissions:

  1. Move the directory <PHANTOM_HOME>/data/db/ssl to the new location. For example, as the root user:
    mv <PHANTOM_HOME>/data/db/ssl <PHANTOM_HOME>/data/ssl
  2. Update the PostgreSQL database with the new value for ssl_cert_file.
    su - postgres -c "psql -h /tmp -p 5432 -c \"ALTER SYSTEM SET ssl_cert_file = '<PHANTOM_HOME>/data/ssl/server.crt'\""
  3. Update the PostgreSQL database with the new value ssl_key_file.
    su - postgres -c "psql -h /tmp -p 5432 -c \"ALTER SYSTEM SET ssl_key_file = '/opt/phantom/data/ssl/server.key'\""
Last modified on 08 January, 2021
PREVIOUS
Upgrade an unprivileged standalone Splunk Phantom instance
  NEXT
Upgrade an unprivileged Splunk Phantom Cluster

This documentation applies to the following versions of Splunk® Phantom (Legacy): 4.8


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