Splunk® Phantom (Legacy)

Install and Upgrade Splunk Phantom

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.

Upgrade a single Splunk Phantom instance

Follow these steps to upgrade your Splunk Phantom instance.

If your Splunk Phantom deployment is not a cluster, and uses an external PostgresSQL database and/or an external GlusterFS file share you will need to upgrade the external services before upgrading Splunk Phantom itself.

  1. Make sure you have read and done the steps from Splunk Phantom upgrade overview and prerequisites.
  2. Log in to the Splunk Phantom instance's operating system as either the root user or a user with sudo privileges.
  3. If you use a warm standby or use ibackup.pyc for backups, you must disable those features before proceeding. If you are not using either of those features, you may skip these sub-steps.
    1. Disable warm standby. See Upgrade or maintain warm standby instances in Administer Splunk Phantom.

      If you have already disabled warm standby, cancelled backups, and set archive_mode to "off", skip these steps.

    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. Disable WAL archiving for the PostgreSQL database. Set the archive_mode to "off" in the file /opt/phantom/data/db/postgresql.phantom.conf.
      sed -i -e 's/archive_mode = on/archive_mode = off/i' /opt/phantom/data/db/postgresql.phantom.conf
    4. Restart PostgreSQL to make the configuration change take effect. If you are upgrading a system that is running PostgreSQL version 9.4:
      /<PHANTOM_HOME>/bin/phsvc restart postgresql-9.4
      If you are upgrading a system that is running PostgreSQL version 11:
      /<PHANTOM_HOME>/bin/phsvc restart postgresql-11
  4. If your Splunk Phantom instance uses an external PostgreSQL database or GlusterFS-based fileshare, those need to be upgraded before Splunk Phantom:
    1. Stop all Splunk Phantom services. For example, as the root user:
      /opt/phantom/bin/stop_phantom.sh
    2. If your Splunk Phantom instance uses an external PostgreSQL database, upgrade PostgreSQL. See Upgrade PostgreSQL for Splunk Phantom deployments with external databases.
    3. If your Splunk Phantom deployment uses an external GlusterFS-based file share, upgrade GlusterFS. See Upgrade GlusterFS for Splunk Phantom deployments with GlusterFS fileshares.
    4. After the PostgreSQL and GlusterFS upgrades are complete, start all Splunk Phantom services. For example, as the root user:
      /opt/phantom/bin/start_phantom.sh
  5. Run the upgrade script. You will be prompted during this script for your Splunk Phantom Community portal login. For example, as the root user:
    /opt/phantom/bin/phantom_setup.sh upgrade
    If you don't want to upgrade your installed apps 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.

  6. If the upgrade script produced the following message:
    To improve database performance, after completing the upgrade, run: su - postgres -c '/usr/pgsql-11/bin/vacuumdb -h /tmp --all --analyze-in-stages'
    Then run the command:
    su - postgres -c '/usr/pgsql-11/bin/vacuumdb -h /tmp --all --analyze-in-stages'
  7. After the upgrade is complete, from Main Menu > Administration > Administration Settings > Search Settings, select Playbook from the drop-down menu, then click the Reindex Search Data button.
Last modified on 25 March, 2021
Upgrade GlusterFS for Splunk Phantom deployments with Glusterfs fileshares   Upgrade a single Splunk Phantom instance on a system with limited internet access

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


Was this topic useful?







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