You
can use the attached JSONs to synchronize records in bulk between
master and tenant nodes if the records at the master node are not
replicated at the tenant nodes or vice-versa.
You can synchronize records with or without the corresponding correlated records.
To synchronize records without correlated records, use the Bulk Sync without correlation records.json
file.
To synchronize records with correlated records, use the Bulk Sync with correlation records.json
file.
Synchronizing alert records in bulk on a tenant node
If
the master nodes' records have not been synchronized at a tenant node
and you want to synchronize those records, without the correlated
records, then perform the following steps:
- Download the attached
Bulk Sync without correlation records.json
file.
Important: This JSON file will synchronize records only of the "Alerts" module. - Log
on to the tenant node as a user who is assigned a role that has Create,
Read, Update, Delete and Execute privileges on the playbook module and
also Create, Read, Update, Delete privileges on the module on which the
playbook will be triggered.
- From the left navigation, click Automation > Playbooks.
- On the Playbooks page, click Import to import the
Bulk Sync without correlation records.json
file.
This imports the "Bulk Sync" playbook collection. - Navigate to the Alerts module and click Execute > Bulk Sync Batch Wise Alerts to synchronize the alert records.
This playbook synchronizes alerts in batches of 100 on the tenant node.
Note:
If you want to synchronize records between the tenant and master, with
the correlated records, then follow the same steps as mentioned above,
using the attached Bulk Sync with correlation records.json
file. However, in this case you must ensure that records for which you
are creating correlations exist on the node you are Bulk Sync playbooks.
If the records do not exist, then the records get replicated, however,
the correlated records do not get created.
Synchronizing records other than alerts in bulk on a tenant node
The Bulk Sync without correlation records.json
file synchronizes only alert records. In case you want to synchronize records of any other module, perform the following steps:
- Log
on to the tenant node as a user who is assigned a role that has Create,
Read, Update, Delete and Execute privileges on the playbook module and
also Create, Read, Update, Delete privileges on the module on which the
playbook will be triggered.
- From the left navigation, click Automation > Playbooks.
- On the
Playbooks
page, from the Bulk Sync playbook collection, open the "Bulk Sync Batch Wise Alerts" playbook. - Open the Start (trigger) step and in the
Execution Behavior
section, from the Choose record modules on which the playbook would be available on drop-down list remove "Alerts" and add the module on which you want to trigger this playbook. For example, "Incidents". - Open the Get Alert step and from the Module drop-down list choose the module whose records you want to synchronize. For example, Incidents.
You can also change the other parameters of this step, such as the name of the step and then save the step. - Open the Reference a Playbook step and open the referenced playbook, i.e., "Bulk Sync".
- In the "Bulk Sync" playbook, open the Utilities step, and update the IRI field to reflect the module whose records you want to synchronize.
By default, this is set as /api/3/update/alerts
.
If you want to synchronize incident records, change this to /api/3/update/incidents
and save the step and the playbook. - Save the "Bulk Sync Batch Wise Alerts" playbook.
- Navigate to the module whose records you want to synchronize, for example, Incidents, and click Execute > Bulk Sync Batch Wise Incidents to synchronize the incident records.
Synchronizing correlations in bulk on a tenant node
The Bulk Sync with correlation records.json
file adds correlations only between the "Indicators" module and the
"Alerts" Module. If you want to add any other correlations, such as
adding correlations between the "Assets" module and the "Assets" module,
perform the following steps.
Important: If the records do not exist, then the records get replicated, however, the correlated records do not get created.
- Log
on to the tenant node as a user who is assigned a role that has Create,
Read, Update, Delete and Execute privileges on the playbook module and
also Create, Read, Update, Delete privileges on the module on which the
playbook will be triggered.
- From the left navigation, click Automation > Playbooks.
- On the
Playbooks
page, from the Bulk Sync playbook collection, open the "Bulk Sync Batch Wise" playbook. - Open the Start (trigger) step and in the
Execution Behavior
section, from the Choose record modules on which the playbook would be available on drop-down list remove "Alerts" and add the module on which you want to trigger this playbook. For example, "Assets". - Open the Get Alert step and from the Module drop-down list choose the module for correlations. For example, Assets.
You can also change the other parameters of this step, such as the name of the step and then save the step. - Open the Reference a Playbook step and open the referenced playbook, i.e., "Bulk Sync".
- In the "Bulk Sync" playbook, open the Create Request Body step, and update the updateRecords
variable to add in the fields that the user wants to replicate from the
master side along with mandatory fields of the module to be
synchronized in the "array" format.
For example, you can change this, which defines indicators correlated with alerts:
"__selectFields":["typeofindicator","value","file","reputation","description","sources","alerts"]
to
"__selectFields":["hostname","name","ip","alerts"]
which defines assets correlated with alerts. - In the "Bulk Sync" playbook, open the Utilities step, and update the IRI field to reflect that you want to update the correlated assets.
By default, this is set as /api/3/update/indicators?$relationship=true
If you want to synchronize asset records with existing alerts, change this to /api/3/update/assets?$relationship=true
and save the step and the playbook. - Save the "Bulk Sync Batch Wise" playbook.
- Navigate to the Assets module and execute the playbook to create correlations between existing alerts and assets.