Filter and Transform data
Filter and transform data within a playbook.
Use filters and transformers to manipulate data. Add them to playbook tasks or instance mappings.
In Cortex Cloud, data is extracted and collected from various sources, such as playbook tasks and command results, and presented in JSON format. The data can be manipulated by using filters and transformers.
Filters
Filters extract relevant data for use elsewhere in Cortex Cloud. For example, an issue can contain files with different types and extensions. Filter these files by extension or type, then use them in a detonation playbook.
You can filter as many objects as needed. Cortex Cloudautomatically calculates the context root for each filter. Change it only when necessary.
Caution: Changing the context data root can affect filter results. The drop-down list displays the filter root for backward compatibility.
Transformers
Transformers modify or format data for further processing or presentation. For example, convert a non-Unix date to Unix format. The count transformer returns the number of elements.
When you add multiple transformers, Cortex Cloud applies them in displayed order. Drag and drop transformers to reorder them.
Add filters and transformers to a playbook task
Create or edit a playbook task.
In the relevant field, such as inputs or outputs, click the curly brackets.
Select Filters and Transformers.
In Get, enter or select the data to filter or transform. For example,
EWS.Items.Name.Optional: Add a filter.
In Filter, click Add filter. The context root is populated automatically.
Select the data to filter.
Select the filter operators.
Enter a value.
Select the checkbox to save the filter.
Optional: Add a transformer.
Click Add transformer.
Select the transformer. The default is
To upper case(String).Select the transformer operators.
Select the checkbox to save.
Optional: Click Test to test the filter or transformation. Select an investigation or add one manually.
Last updated
Was this helpful?





