Extract a subset of the data
Extract a subset of data from a Cortex XSIAM JSON list.
In a playbook, you can extract subsets of context data to analyze a specific information set. This approach also applies when working with lists, such as extracting a subset of data from a JSON object. In this example, we extract server information from the list created above.
In a playbook, create a task.
In the Choose Script field, select Set .
In the key field, define a context key name for the data; for example, JSONDataSubset.
In the value field, set the list you want to extract by clicking the curly brackets.
Click Filters And Transformers.
In the Get field, enter
lists.Test1.domain.servers.In the Fetch data field, select an issue to test the data.
Click Test.
When the test completes, click Save.
Save the task and the playbook.
Last updated
Was this helpful?
