End-of-Life (EoL)

Reindex a Specific Index for a Distributed Database

Follow these steps to reindex a specific index in a distributed database environment.
Follow these steps to reindex a specific index in a distributed database environment. You need to log in to each database machine and run the indexing command with the name of the specific index on each database machine. Depending on the volume of the data in the system, it may take some time for the indexing to complete.
  1. Stop the Cortex XSOAR service.
    sudo systemctl stop demisto
  2. Log in to the main database machine and all secondary database machines.
  3. Stop the demisto instance on the main database and all secondary databases.
    sudo systemctl stop demisto
  4. On each database machine, run the server and be sure to specify the index as an argument.
    sudo /usr/local/demisto/server -restore-index-name=indexName -public /usr/local/demisto/dist -stdout -conf /etc/demisto.conf
  5. Log in to your Cortex XSOAR instance and verify that the reindex process was successful.
  6. When a message appears stating
    Server up and running, good luck to us all
    or the Cortex XSOAR UI displays, verify that all the data is present from the reindexing, and stop the process by pressing
    Ctrl+C
    or
    Cmd+C
    .
  7. Set permissions on all databases using the following command.
    sudo chown -R demisto:demisto /var/lib/demisto/data
  8. Start the main database machine and all secondary database machines.
    sudo systemctl start demisto
  9. Start the Cortex XSOAR service.
    sudo service demisto start

Recommended For You