Create custom filter and transformers
Create custom filters and transformers for playbook data.
If you require a filter or transformer that is not provided out-of-the-box, you can create your own by creating a script and then adding to the operators window.
Select Investigation & Response → Automation → Scripts → New Script.
Type a meaningful name for the script, and click Save.
To create a filter operator script, do the following:
In the Tags field, add the
filtertag.If you want a custom transformer that operates on an entire array rather than on each individual item, you need to add the
entirelisttag.In the Arguments section, add the following arguments:
ArgumentDescriptionleft
Mark as mandatory. This argument defines the left-side value of the transformer operation. In this example, this is the value being checked if it falls within the range specified in the right-side value.
right
Mark as mandatory. This argument defines the right-side value of the transformer operation. In this example, this is the range to check if the left-side value is in.
Add the script syntax and save.
To create a transformer operator script, do the following:
In the Tags field, add the
transformertag.In the Arguments section, add the following arguments:
ArgumentDescriptionvalue
Mark as mandatory. The value to transform. In this example, this is the UNIX epoch timestamp to convert to ISO format.
Add the script syntax and save.
Go to the filters and transformers window and select the operator.
Last updated
Was this helpful?
