Splunk® Phantom (Legacy)

Administer 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

Create a warm standby

You will need two identical instances of Splunk Phantom, one to serve as your primary Splunk Phantom instance, and the second to serve as the warm standby.

Do these steps to create your warm standby.

  1. Complete the prerequisites.
  2. Create a second Splunk Phantom instance to be the warm standby.
  3. Setup SSH access between the primary Splunk Phantom instance and the new warm standby.
  4. Configure warm standby using the setup_warm_standby.pyc script.

Prerequisites

There are some tasks that need to be completed before you can set up warm standby.

  1. Create a full backup or a virtual machine snapshot of the Splunk Phantom instance that will be your primary.
  2. Create a DNS A record for a hostname for your Splunk Phantom instance. You may need to work with other teams who manage DNS to accomplish this. Establish an appropriate Time To Live (TTL) value for this record since you will update the DNS A recoerd in the event of a failover.
  3. Set the Base URL for Phantom Appliance with the the hostname from the DNS A record in Main Menu > Administration > Company Settings. Example: https://phantom.example.com
  4. Open the following ports on the primary Splunk Phantom instance's firewall TCP 22 for SSH, TCP 443 (HTTPS), and TCP 5432 for PostgreSQL operations.
  5. Set up SSH between the primary Splunk Phantom instance and the warm standby.

Create a second Splunk Phantom instance to be the warm standby

You can either:

  • clone the virtual machine that is your primary Splunk Phantom instance, or
  • create an entirely new instance of Splunk Phantom to serve as the warm standby.

Create a Clone of your primary Splunk Phantom instance

You can create a clone of your primary Splunk Phantom instance. This clone will serve as the warm standby.

Consult the documentation for your virtualization software or the operating system software for how to clone and deploy the cloned instance of Splunk Phantom.

Your clone will need to have its own IP and MAC addresses.

Before you clone the Splunk Phantom instance check to see if it is already being used as part of a warm standby pair. If the instance is part of a warm standby pairing, warm standby must be disabled before cloning the instance. See Disable warm standby.

  1. Clone your Splunk Phantom instance as described by your virtualization or operating system documentation.
  2. Change the MAC and IP addresses for the new clone copy of Splunk Phantom.
  3. On the clone copy of Splunk Phantom, set a password for the phantom user account. This password will be used later during configuration.
    passwd phantom
  4. On the clone of Splunk Phantom, disable cron to prevent any jobs from making changes during setup and configuration.
    sudo systemctl stop crond.service

Create a new Splunk Phantom instance

If using a clone of your primary Splunk Phantom instance is not feasible or is otherwise unwanted, you can install a new instance of Splunk Phantom to serve as your warm standby.

  1. Install Splunk Phantom. See How can Splunk Phantom be installed? in Install and Upgrade Splunk Phantom.
  2. SSH to your warm standby Splunk Phantom instance.
    SSH <username>@<warm_standby_phantom_hostname>
  3. Stop Splunk Phantom services on the standby.
    sudo /<PHANTOM_HOME>/bin/stop_phantom.sh
  4. Copy these files from the primary instance of Splunk Phantom to the new warm standby instance.
    1. /<PHANTOM_HOME>/keystore/private_key.pem
    2. /<PHANTOM_HOME>/www/phantom_ui/secret_key.py
    3. /<PHANTOM_HOME>/www/phantom_ui/secret_key.pyc
  5. On the warm standby instance of Splunk Phantom, set the permissions, ownership, and SELinux security contexts for the files you copied to it.
    1. chmod 0640 /<PHANTOM_HOME>/keystore/private_key.pem /<PHANTOM_HOME>/www/phantom_ui/secret_key.py[c]
    2. chown phantom:phantom /<PHANTOM_HOME>/keystore/private_key.pem
    3. chown phantom:phantom /<PHANTOM_HOME>/www/phantom_ui/secret_key.py[c]
    4. restorecon /<PHANTOM_HOME>/keystore/private_key.pem /<PHANTOM_HOME>/www/phantom_ui/secret_key.py[c]
  6. On the new warm standby instance of Splunk Phantom, set a password for the phantom user account. This password will be used later during configuration.
    passwd phantom
  7. On the new warm standby instance of Splunk Phantom, disable cron to prevent any jobs from making changes during setup and configuration.
    sudo systemctl stop crond.service

If you have installed and configured CyberArk AIM on your Splunk Phantom primary, you will need to install and configure CyberArk AIM on your warm standby.

Setup SSH between the primary and the new warm standby

During setup the primary instance of Splunk Phantom will need to connect to the warm standby instance of Splunk Phantom using SSH.

If password authentication is disabled, it must be enabled in order to proceed and can be disabled once set up is complete.

Configure warm standby using the setup_warm_standby.pyc script

Once both your primary and warm standby instances are ready, you can configure warm standby using the setup_warm_standby.pyc script.

If you do not know if one or both of the instances are already part of a warm standby configuration, check warm standby status before proceeding. See How to check the status of warm standby in the Warm standby feature overview.

Warm standby must be disabled before reconfiguring warm standby to use different Splunk Phantom instances. See Disable warm standby.

Do these steps as either the root user or a user with sudo permissions.

  1. On the primary Splunk Phantom instance, run the setup_warm_standby.pyc script.
    phenv python2.7 /<PHANTOM_HOME>/bin/setup_warm_standby.pyc --primary-mode --configure --primary-ip <IP address of the primary> --standby-ip <IP address of the warm standby>
    You will be prompted for:
    • The password for the user account phantom on the warm standby. This password was set when the warm standby instance was created earlier.
    • A password for the database replication user. This password will be used to configure the PostgreSQL database to use replication.
    • Configuration information to create the SSL certificate file used for communication between the primary and warm standby Splunk Phantom instances.
      Example:
      Country Code: US
      State Code: CA
      City: Palo Alto
      Organization: Example
      Organization Unit: Security
      Domain: phantom.soc.example.com
      Email: soc@example.com
  2. On the warm standby Splunk Phantom instance, run the setup_warm_standby.pyc script.
    phenv python2.7 /<PHANTOM_HOME>/bin/setup_warm_standby.pyc --standby-mode --configure --primary-ip <IP address of the primary> --standby-ip <IP address of the warm standby>
  3. On the warm standby reenable the cron service.
    sudo systemctl start crond.service
Last modified on 28 June, 2021
PREVIOUS
Warm standby feature overview
  NEXT
Failover to the warm standby

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