End-of-Life (EoL)

Reindex a Specific Index Database

Follow these steps to reindex a specific index database. You can also reindex the entire database. Depending on the volume of the data in the system, it may take some time for the indexing to complete. You can reindex more than one database at a time by listing the indexes as a comma separated list
When you are working in a Distributed Database Deployment distributed database configuration, nodes must be enabled. To enable nodes, go to
Settings
Remote Database
and select the checkbox for the node and click
Enable Node
.
  1. Stop the Cortex XSOAR service using the appropriate command for your OS.
    • systemctl stop demisto
    • sudo service demisto stop
  2. Backup the index directory using the following command.
    tar -czvf filename.tar.gz /var/lib/demisto/data/demistoidx
    The backup of the index directory should be not stored under
    /var/lib/demsito
    .
  3. 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
  4. Log in to your Cortex XSOAR instance and verify that the reindex process was successful.
  5. 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
    .
  6. Set permissions by running the following command.
    sudo chown -R demisto:demisto /var/lib/demisto/data
  7. Start the Cortex XSOAR service using the appropriate command for your OS.
    • systemctl start demisto
    • sudo service demisto start

Recommended For You