Index Cortex XSOAR War Room entries to ensure that you can search for them in the Search Incidents. Re-index incidents for selected months.
By default, Cortex XSOAR does not index notes, chats, and pinned as evidence entries from incident War Rooms and it is not possible to find these entries in the Search Incidents bar. Use this procedure to index these entries, which also re-indexes incidents for selected months.
Note
Depending on the number of cases in your system and server hardware, the re-indexing operation can take a significant amount of time, during which the Cortex XSOAR server is inaccessible. It is recommended to undertake this procedure when it has a minimal impact on your organization. After completion, you should review your Cortex XSOAR server, as it may have some impact on performance.
For multi-tenant deployments with Elasticsearch, following the non multi-tenant instructions to Index War Room Entries Using Elasticsearch, applied per tenant.
Stop the tenant process:
In the main account, go to Stop
→ → , select the tenant account, and clickLog in to your Cortex XSOAR server as root or an account with sudo privileges.
Make a backup copy of the tenant’s configuration file:
cp /usr/local/demisto/tenants/acc_
<tenant_name>
/server.conf /usr/local/demisto/tenants/acc_<tenant_name>
/server.conf.bakEdit the
/usr/local/demisto/tenants/acc_
file for all databases by adding or editing the following entries:<tenant_name>
/server.conf"server.entries.restore": true, "db.index.entry.disable": false, DB" : { "IndexEntryContent": true }, "granular": { "index": { "entries": 7 } }
The
granular.index.entries
total value is 7, which is split:1: notes
2: chats
4: pinned as evidence
You can choose one of the values separately, or add them together for all values. For example, 7 is the total of 1 (notes) + 2 (chats) + 4 (pinned as evidence).
Save the file.
We recommend you validate JSON changes before committing them.
Delete the relevant War Room entries index on all databases by running the following command on each database machine:
rm- rf /var/lib/demisto/tenants/acc_
<tenant_name>
/data/demistoidx/entries_MMYYYYFor example, to delete March 2020, run the following command:
rm -rf /var/lib/demisto/tenants/acc_
<tenant_name>
/data/demistoidx/entries_032020To add indexing for additional months, run the same command for each month, but change the date in the command, after "entries_". Adding months may cause re-indexing to take longer depending on the number of cases in the system.
Start the tenant process:
Go to Start.
→ → , select the tenant account, and clickIn the field Additional arguments for tenant start, specify which month(s) you want to re-index. For example, to re-index March 2020, enter
-restore-index-name=entries_032020
. For multiple months, use comma separated values. For example,-restore-index-name=entries_032020,entries_022020,entries_012020
.Confirm that you can search your case comments through the search bar.