End-of-Life (EoL)

Reindex the Entire Database for a Distributed Database

Follow these steps to reindex the entire database in a distributed database environment.
Follow these steps to reindex the entire database in a distributed database environment. 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. Stop the demisto instance on the main database and all secondary databases.
    sudo systemctl stop demisto
  3. Delete the index folder on all databases using the following command.
    sudo rm -rf /var/lib/demisto/data/demistoidx
  4. Set permissions on all databases using the following command.
    sudo chown -R demisto:demisto /var/lib/demisto/data
  5. Start the main database and all secondary databases.
    sudo systemctl start demisto
  6. Start the Cortex XSOAR service.
    sudo systemctl start demisto
  7. Log in to your Cortex XSOAR instance and verify that the reindex process was successful.
    All of your data should appear, for example, incidents, playbooks, automations, and so on. If there is a problem, contact the Cortex XSOAR support team.

Recommended For You