ExtFilter
Community Common Scripts Pack.#
This Script is part of theFilter values with complex conditions.
You can make filters with comlex and combination conditions for the context data at any level of the tree.
#
Script DataName | Description |
---|---|
Script Type | python |
Tags | transformer, entirelist, general |
#
InputsArgument Name | Description |
---|---|
value | The value to filter/transform. |
path | Context path to which to filter |
operator | The operation name to filter/transform. |
filter | The filter. |
ctx_demisto | Enable to access the context data |
ctx_inputs | Enable to access the input parameters to sub playbooks and use ${inputs.} |
ctx_lists | Enable to access the list data and use ${list.} |
ctx_incident | Enable to access the incident context and use ${incident.} |
expressions
, conditions
and transformers
#
Filter Syntax for #
dict-expression and
logical operator for each expression.
e.g.
(<value> ends with ".exe") && (<value> starts with "x")
#
array-expression Logical operations for each expression. and
by default.
e.g.
(<value> ends with ".exe") && (<value> starts with "x")
or
(<value> ends with ".exe") || (<value> starts with "x")
not (<value> ends with ".exe")
((<value> ends with ".exe") || (<value> ends with ".pdf")) and (<value> starts with "x")
#
conditionEvaluates child nodes of each dictionary element.
e.g.
<value>.Domain ends with ".com"
(<value>.Domain ends with ".com") && (<value>.IP starts with "192.168.")
#
array-condition Logical operations for each condition. and
by default.
e.g.
(<value>.Domain ends with ".com") || (<value>.IP starts with "192.168.")
not ((<value>.Domain ends with ".com") || (<value>.IP starts with "192.168."))
#
transformersRun each transformer in order.
e.g.
base64: encode -> digest
base64: encode -> digest
(Python 3.7 or above)
Note:
The order depends on python runtime in a dict-expression
. Python 3.6 or less doesn't guarantee dictionary keys order.
#
DT (Demisto Transform Language) In filters written in JSON like expressions
, conditions
, transformers
or <value>
, you can set values with DT expressions for keys and values.
When you use DT, you must set ctx_demisto
, ctx_inputs
, ctx_lists
and ctx_incident
of the parameters for the data to which DT accesses.
Parameter | Data Source | Value | Description |
---|---|---|---|
ctx_demisto | From Previous Tasks | . | Enable to access the context data |
ctx_inputs | From Previous Tasks | inputs | Enable to access the input parameters to sub playbooks and use ${inputs.} |
ctx_lists | From Previous Tasks | list | Enable to access the list data and use ${list.} |
ctx_incident | From Previous Tasks | incident | Enable to access the incident context and use ${incident.} |
NOTE: ${list.}
doesn't work in XSOAR 6.0 in transformer.
local
prefix (${local.}
) and .
prefix (${..}
) can be available for additional DT references.
${local}
refers the root value of the target, and ${local.<name>}
refers the value property located at the relateve path to the root.
${..}
refers the current value of the target, and ${.<name>}
refers the value property located at the relateve path to the current value.
No parameters set is required for using ${local.}
and ${..}
.
#
Example 1#
Example 2#
Example 3#
Example 4#
Example 5#
Example 6#
OperatorsAvailable operators
is transformed with
is filtered with
value is filtered with
keeps
doesn't keep
is
isn't
===
!==
equals
==
doesn't equal
!=
greater or equal
>=
greater than
>
less or equal
<=
less than
in range
starts with
starts with caseless
doesn't start with
doesn't start with caseless
ends with
ends with caseless
doesn't end with
doesn't end with caseless
includes
includes caseless
doesn't include
doesn't include caseless
finds
finds caseless
doesn't find
doesn't find caseless
matches
matches caseless
doesn't match
doesn't match caseless
wildcard: matches
wildcard: matches caseless
wildcard: doesn't match
wildcard: doesn't match caseless
regex: matches
regex: matches caseless
regex: doesn't match
regex: doesn't match caseless
in
in caseless
not in
not in caseless
in list
in caseless list
not in list
not in caseless list
contains
contains caseless
doesn't contain
doesn't contain caseless
wildcard: contains
wildcard: contains caseless
wildcard: doesn't contain
wildcard: doesn't contain caseless
regex: contains
regex: contains caseless
regex: doesn't contain
regex: doesn't contain caseless
matches any line of
matches any caseless line of
doesn't match any line of
doesn't match any caseless line of
matches any string of
matches any caseless string of
doesn't match any string of
doesn't match any caseless string of
wildcard: matches any string of
wildcard: matches any caseless string of
wildcard: doesn't match any string of
wildcard: doesn't match any caseless string of
regex: matches any string of
regex: matches any caseless string of
regex: doesn't match any string of
regex: doesn't match any caseless string of
contains any line of
contains any caseless line of
doesn't contain any line of
doesn't contain any caseless line of
contains any string of
contains any caseless line of
doesn't contain any string of
doesn't contain any caseless line of
wildcard: contains any string of
wildcard: contains any caseless line of
wildcard: doesn't contain any string of
wildcard: doesn't contain any caseless line of
regex: contains any string of
regex: contains any caseless line of
regex: doesn't contain any string of
regex: doesn't contain any caseless line of
matches expressions of
matches conditions of
value matches expressions of
value matches conditions of
json: encode array
json: encode
json: decode
base64: encode
base64: decode
digest
is replaced with
is updated with
appends
if-then-else
switch-case
collects values
collects keys
flattens with values
flattens with keys
abort
email-header: decode
regex: replace
is individually transformed with
is collectively transformed with
is transformed with
#
Operator: Transforms elements with `transformers` given in a filter. See `Filter Syntax` for the details of `transformers`.
Filter Format:
transformers
#
Example 1#
Input#
FilterOperator: is transformed with
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: is transformed with
Path: File
Filter:
#
Output#
Example 3#
Input#
FilterOperator: is transformed with
Path:
Filter:
#
Outputis filtered with
#
Operator: Evaluates each element of an array with given conditions and returns a set of the elements matched. The value is handled as an array which has only one element when its data type is `dictionary`. See `Filter Syntax` for the details of `conditions`.
Filter Format:
conditions
#
Example 1#
Input#
FilterOperator: is filtered with
Path:
Filter:
#
Outputvalue is filtered with
#
Operator: Evaluates each value of dictionary elements or each element for values whose data type is not `dictionary`, and returns a set of the elements matched to expressions given in a filter. See `Filter Syntax` for the details of `expressions`.
Filter Format:
expressions
#
Example 1#
Input#
FilterOperator: value is filtered with
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: value is filtered with
Path: Score
Filter:
#
Outputkeeps
#
Operator: Evaluates each element of an array with keys given and returns a set of the elements which only retains the keys given and corresponding values. The value is handled as an array which has only one element when its data type is `dictionary`.
Filter Format:
expressions
#
Example 1#
Input#
FilterOperator: keeps
Path:
Filter:
#
Outputdoesn't keeps
#
Operator: Evaluates each element of an array with keys given and returns a set of the elements which are excluded the keys given. The value is handled as an array which has only one element when its data type is `dictionary`.
Filter Format:
expressions
#
Example 1#
Input#
FilterOperator: doesn't keeps
Path:
Filter:
#
Outputis
#
Operator: This operator works with a sub operator specified as filter.
#
Sub Operator: emptyReturns a set of elements which is empty.
#
Example 1#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Sub Operator: nullReturns a set of elements which is `null`.
#
Example 1#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Sub Operator: stringReturns a set of elements whose data type is `string`.
#
Example 1#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Sub Operator: integerReturns a set of elements whose data type is `integer`.
#
Example 1#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Sub Operator: integer stringReturns a set of elements whose data type is `string` and whose value is integer. The value that includes decimal point is evaluated as not integer.
#
Example 1#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Sub Operator: any integerReturns a set of elements matched with `string` or `integer string` operator.
#
Example 1#
Input#
FilterOperator: is
Path:
Filter:
#
Output#
Sub Operator: existing keyisn't
#
Operator: This operator works with a sub operator specified as filter.
#
Sub Operator: emptyReturns a set of elements which is not empty.
#
Example 1#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Sub Operator: nullReturns a set of elements which is not `null`.
#
Example 1#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Sub Operator: stringReturns a set of elements whose data type is not `string`.
#
Example 1#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Sub Operator: integerReturns a set of elements whose date type is not `integer`.
#
Example 1#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Sub Operator: integer stringReturns a set of elements whose data type is not `string` or whose value is not integer. The value that includes decimal point is evaluated as not integer.
#
Example 1#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Sub Operator: any integerReturns a set of elements which are neither `string` or `integer string`.
#
Example 1#
Input#
FilterOperator: isn't
Path:
Filter:
#
Output#
Sub Operator: existing key===
#
Operator: Returns a set of elements which exactly matches to a value given in a filter. It doesn't match when the data types are different.
Filter Format:
<value>
#
Example 1#
Input#
FilterOperator: ===
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: ===
Path:
Filter:
#
Output!==
#
Operator: Returns a set of elements which doesn't match the data type or the value of a value given in a filter.
Filter Format:
<value>
#
Example 1#
Input#
FilterOperator: !==
Path:
Filter:
#
Outputequals
, ==
#
Operator: Returns a set of elements which is equal to a value given in a filter. The value is implicitly converted from its data type to another in a comparison between different data types. `==` is an alias name for `equals`.
Filter Format:
<value>
#
Example 1#
Input#
FilterOperator: equals
Path:
Filter:
#
Outputdoesn't equal
, !=
#
Operator: Returns a set of elements which is not equal to a value given in a filter. The value is implicitly converted from its data type to another in a comparison between different data types. `!=` is an alias name for `doesn't equal`.
Filter Format:
<value>
#
Example 1#
Input#
FilterOperator: doesn't equal
Path:
Filter:
#
Outputgreater or equal
, >=
#
Operator: Returns a set of elements which is greater or equal to a value given in a filter. The value is implicitly converted from its data type to number in a comparison. This operator evaluates to false for either or both of the data which cannot convert to number. `>=` is an alias name for `greater or equal`.
Filter Format:
<value>
#
Example 1#
Input#
FilterOperator: greater or equal
Path:
Filter:
#
Outputgreater than
, >
#
Operator: Returns a set of elements which is greater than a value given in a filter. The value is implicitly converted from its data type to number in a comparison. This operator evaluates to false for either or both of the data which cannot convert to number. `>` is an alias name for `greater than`.
Filter Format:
<value>
#
Example 1#
Input#
FilterOperator: greater than
Path:
Filter:
#
Outputless or equal
, <=
#
Operator: Returns a set of elements which is less or equal to a value given in a filter. The value is implicitly converted from its data type to number in a comparison. This operator evaluates to false for either or both of the data which cannot convert to number. `<=` is an alias name for `less or equal`.
Filter Format:
<value>
#
Example 1#
Input#
FilterOperator: less or equal
Path:
Filter:
#
Outputless than
, <
#
Operator: Returns a set of elements which is less than a value given in a filter. The value is implicitly converted from its data type to number in a comparison. This operator evaluates to false for either or both of the data which cannot convert to number. `<` is an alias name for `less than`.
Filter Format:
<value>
#
Example 1#
Input#
FilterOperator: less than
Path:
Filter:
#
Outputin range
#
Operator: Returns a set of elements which is greater or equal to `min` and less or equal to `max` given in a range. The value is implicitly converted from its data type to number in a comparison. This operator evaluates to false for either or both of the data which cannot convert to number.
Filter Format:
min
,max
#
Example 1#
Input#
FilterOperator: in range
Path:
Filter:
#
Outputstarts with
#
Operator: Returns a set of elements which starts with a string given in a filter.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: starts with
Path:
Filter:
#
Outputstarts with caseless
#
Operator: Returns a set of elements which starts with a string given in a filter. It performs case-insensitive matching.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: starts with caseless
Path:
Filter:
#
Outputdoesn't start with
#
Operator: Returns a set of elements which doesn't start with a string given in a filter.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't start with
Path:
Filter:
#
Outputdoesn't start with caseless
#
Operator: Returns a set of elements which doesn't start with a string given in a filter. It performs case-insensitive matching.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't start with caseless
Path:
Filter:
#
Outputends with caseless
#
Operator: Returns a set of elements which ends with a string given in a filter. It performs case-insensitive matching.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: ends with caseless
Path:
Filter:
#
Outputdoesn't end with
#
Operator: Returns a set of elements which doesn't end with a string given in a filter.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't end with
Path:
Filter:
#
Outputdoesn't end with caseless
#
Operator: Returns a set of elements which doesn't end with a string given in a filter. It performs case-insensitive matching.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't end with caseless
Path:
Filter:
#
Outputincludes
#
Operator: Returns a set of elements of which a string given in a filter is a substring. The searching only works for `string` data types. It evaluates to unmatched for a element that either or both of the data types is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: includes
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: includes
Path:
Filter:
#
Outputincludes caseless
#
Operator: Returns a set of elements of which a string given in a filter is a substring. It performs case-insensitive seaching, and only works for `string` data types. It evaluates to unmatched for a element that either or both of the data types is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: includes caseless
Path:
Filter:
#
Outputdoesn't include
#
Operator: Returns a set of elements of which a string given in a filter is not a substring. The searching only works for `string` data types. It evaluates to unmatched for a element that either or both of the data types is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't include
Path:
Filter:
#
Outputdoesn't include caseless
#
Operator: Returns a set of elements of which a string given in a filter is not a substring. It performs case-insensitive seaching, and only works for `string` data types. It evaluates to unmatched for a element that either or both of the data types is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't include caseless
Path:
Filter:
#
Outputfinds
#
Operator: Returns the entire target value if a string given in a filter is a substring of any of the elements, `null` otherwise. The searching is performed for a single `string` element or each `string` element of an array.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: finds
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: finds
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: finds
Path:
Filter:
#
Outputfinds caseless
#
Operator: Returns the entire target value if a string given in a filter is a substring of any of the elements, `null` otherwise. The searching is performed for a single `string` element or each `string` element of an array with case-insensitive matching.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: finds caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: finds caseless
Path:
Filter:
#
Outputdoesn't find
#
Operator: Returns an entire target value if a string given in a filter is not a substring of any of the elements, `null` otherwise. The searching is performed for a single `string` element or each `string` element of an array.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't find
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't find
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't find
Path:
Filter:
#
Outputdoesn't find caseless
#
Operator: Returns an entire target value if a string given in a filter is not a substring of any of the elements, `null` otherwise. The searching is performed for a single `string` element or each `string` element of an array with case-insensitive matching.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't find caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't find caseless
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't find caseless
Path:
Filter:
#
Outputmatches
#
Operator: Returns a set of elements which is equal to a string given in a filter. The matching is peformed between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: matches
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: matches
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: matches
Path:
Filter:
#
Outputmatches caseless
#
Operator: Returns a set of elements which matches a string given in a filter. The matching is peformed case-insensitively and between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: matches caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: matches caseless
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: matches caseless
Path:
Filter:
#
Outputdoesn't match
#
Operator: Returns a set of elements which is not equal to a string given in a filter. The matching is peformed between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't match
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't match
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't match
Path:
Filter:
#
Outputdoesn't match caseless
#
Operator: Returns a set of elements which doesn't match a string given in a filter. The matching is peformed case-insensitively and between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't match caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't match caseless
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't match caseless
Path:
Filter:
#
Outputwildcard: matches
#
Operator: Returns a set of elements which matches a wildcard pattern given in a filter. The matching is peformed between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: wildcard: matches
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: matches
Path:
Filter:
#
Outputwildcard: matches caseless
#
Operator: Returns a set of elements which matches a wildcard pattern given in a filter. The matching is peformed case-insensitively and between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: wildcard: matches caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: matches caseless
Path:
Filter:
#
Outputwildcard: doesn't match
#
Operator: Returns a set of elements which doesn't match a wildcard pattern given in a filter. The matching is peformed between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: wildcard: doesn't match
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: doesn't match
Path:
Filter:
#
Outputwildcard: doesn't match caseless
#
Operator: Returns a set of elements which doesn't match a wildcard pattern given in a filter. The matching is peformed case-insensitively and between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: wildcard: doesn't match caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: doesn't match caseless
Path:
Filter:
#
Outputregex: matches
#
Operator: Returns a set of elements which matches a regular expression pattern given in a filter. The matching is peformed between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: regex: matches
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: matches
Path:
Filter:
#
Outputregex: matches caseless
#
Operator: Returns a set of elements which matches a regular expression pattern given in a filter. The matching is peformed case-insensitively and between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: regex: matches caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: matches caseless
Path:
Filter:
#
Outputregex: doesn't match
#
Operator: Returns a set of elements which doesn't match a regular expression pattern given in a filter. The matching is peformed between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: regex: doesn't match
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: doesn't match
Path:
Filter:
#
Outputregex: doesn't match caseless
#
Operator: Returns a set of elements which doesn't match a regular expression pattern given in a filter. The matching is peformed case-insensitively and between `string` data types. It doesn't match for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: regex: doesn't match caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: doesn't match caseless
Path:
Filter:
#
Outputin
#
Operator: Returns a set of a element which matches a element of the values given.
Filter Format:
list
#
Example 1#
Input#
FilterOperator: in
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: in
Path:
Filter:
#
Outputin caseless
#
Operator: Returns a set of a element which matches a element of the values given. The matching is peformed case-insensitively for `string` elements.
Filter Format:
list
#
Example 1#
Input#
FilterOperator: in caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: in caseless
Path:
Filter:
#
Outputnot in
#
Operator: Returns a set of a element which doesn't match any element of the values given.
Filter Format:
list
#
Example 1#
Input#
FilterOperator: not in
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: not in
Path:
Filter:
#
Outputnot in caseless
#
Operator: Returns a set of a element which doesn't match any element of the values given. The matching is peformed case-insensitively for `string` elements.
Filter Format:
list
#
Example 1#
Input#
FilterOperator: not in caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: not in caseless
Path:
Filter:
#
Outputin list
#
Operator: Returns a set of elements which matches any of strings of a comma separated list. The matching always evaluates to false for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: in list
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: in list
Path:
Filter:
#
Outputin caseless list
#
Operator: Returns a set of elements which matches any of strings of a comma separated list. The matching is peformed case-insensitively, and always evaluates to false for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: in caseless list
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: in caseless list
Path:
Filter:
#
Outputnot in list
#
Operator: Returns a set of elements which doesn't match any of strings of a comma separated list. The matching always evaluates to false for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: not in list
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: not in list
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: not in list
Path:
Filter:
#
Outputnot in caseless list
#
Operator: Returns a set of elements which doesn't match any of strings of a comma separated list. The matching is peformed case-insensitively, and always evaluates to false for a element whose data type is not `string`.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: not in caseless list
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: not in caseless list
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: not in caseless list
Path:
Filter:
#
Outputcontains
#
Operator: Returns an entire value if any of the elements matches a string given in a filter, `null` otherwise.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: contains
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: contains
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: contains
Path:
Filter:
#
Outputcontains caseless
#
Operator: Returns an entire value if any of the elements matches a string given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: contains caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: contains caseless
Path:
Filter:
#
Outputdoesn't contain
#
Operator: Returns an entire value if all of the elements doesn't match a string given in a filter, `null` otherwise.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't contain
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't contain
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't contain
Path:
Filter:
#
Outputdoesn't contain caseless
#
Operator: Returns an entire value if all of the elements doesn't match a string given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't contain caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't contain caseless
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't contain caseless
Path:
Filter:
#
Outputwildcard: contains
#
Operator: Returns an entire value if any of the elements matches a wildcard pattern given in a filter, `null` otherwise.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: wildcard: contains
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: contains
Path:
Filter:
#
Outputwildcard: contains caseless
#
Operator: Returns an entire value if any of the elements matches a wildcard pattern given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: wildcard: contains caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: contains caseless
Path:
Filter:
#
Outputwildcard: doesn't contain
#
Operator: Returns an entire value if all of the elements doesn't match a wildcard pattern given in a filter, `null` otherwise.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: wildcard: doesn't contain
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: doesn't contain
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: wildcard: doesn't contain
Path:
Filter:
#
Outputwildcard: doesn't contain caseless
#
Operator: Returns an entire value if all of the elements doesn't match a wildcard pattern given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: wildcard: doesn't contain caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: doesn't contain caseless
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: wildcard: doesn't contain caseless
Path:
Filter:
#
Outputregex: contains
#
Operator: Returns an entire value if any of the elements matches a regular expression given in a filter, `null` otherwise.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: regex: contains
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: contains
Path:
Filter:
#
Outputregex: contains caseless
#
Operator: Returns an entire value if any of the elements matches a regular expression given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: regex: contains caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: contains caseless
Path:
Filter:
#
Outputregex: doesn't contain
#
Operator: Returns an entire value if all of the elements doesn't match a regular expression given in a filter, `null` otherwise.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: regex: doesn't contain
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: doesn't contain
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: regex: doesn't contain
Path:
Filter:
#
Outputregex: doesn't contain caseless
#
Operator: Returns an entire value if all of the elements doesn't match a regular expression given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: regex: doesn't contain caseless
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: doesn't contain caseless
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: regex: doesn't contain caseless
Path:
Filter:
#
Outputmatches any line of
#
Operator: Returns a set of elements which matches any line of a text given in a filter.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: matches any line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: matches any line of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: matches any line of
Path:
Filter:
#
Outputmatches any caseless line of
#
Operator: Returns a set of elements which matches any line of a text given in a filter. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: matches any caseless line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: matches any caseless line of
Path:
Filter:
#
Outputdoesn't match any line of
#
Operator: Returns a set of elements which doesn't match any line of a text given in a filter.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't match any line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't match any line of
Path:
Filter:
#
Outputdoesn't match any caseless line of
#
Operator: Returns a set of elements which doesn't match any line of a text given in a filter. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't match any caseless line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't match any caseless line of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't match any caseless line of
Path:
Filter:
#
Outputmatches any string of
#
Operator: Returns a set of elements which matches any strings given in a filter.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: matches any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: matches any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: matches any string of
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: matches any string of
Path:
Filter:
#
Outputmatches any caseless string of
#
Operator: Returns a set of elements which matches any strings given in a filter. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: matches any caseless string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: matches any caseless string of
Path:
Filter:
#
Outputdoesn't match any string of
#
Operator: Returns a set of elements which doesn't match any strings given in a filter.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: doesn't match any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't match any string of
Path:
Filter:
#
Outputdoesn't match any caseless string of
#
Operator: Returns a set of elements which doesn't match any strings given in a filter. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: doesn't match any caseless string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't match any caseless string of
Path:
Filter:
#
Outputwildcard: matches any string of
#
Operator: Returns a set of elements which matches any wildcard patterns given in a filter.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: wildcard: matches any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: matches any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: wildcard: matches any string of
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: wildcard: matches any string of
Path:
Filter:
#
Outputwildcard: matches any caseless string of
#
Operator: Returns a set of elements which matches any wildcard patterns given in a filter. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: wildcard: matches any caseless string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: matches any caseless string of
Path:
Filter:
#
Outputwildcard: doesn't match any string of
#
Operator: Returns a set of elements which doesn't match any wildcard patterns given in a filter.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: wildcard: doesn't match any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: doesn't match any string of
Path:
Filter:
#
Outputwildcard: doesn't match any caseless string of
#
Operator: Returns a set of elements which doesn't match any wildcard patterns given in a filter. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: wildcard: doesn't match any caseless string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: doesn't match any caseless string of
Path:
Filter:
#
Outputregex: matches any string of
#
Operator: Returns a set of elements which matches any regular expression patterns given in a filter.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: regex: matches any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: matches any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: regex: matches any string of
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: regex: matches any string of
Path:
Filter:
#
Outputregex: matches any caseless string of
#
Operator: Returns a set of elements which matches any regular expression patterns given in a filter. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: regex: matches any caseless string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: matches any caseless string of
Path:
Filter:
#
Outputregex: doesn't match any string of
#
Operator: Returns a set of elements which doesn't match any regular expression patterns given in a filter.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: regex: doesn't match any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: doesn't match any string of
Path:
Filter:
#
Outputregex: doesn't match any caseless string of
#
Operator: Returns a set of elements which doesn't match any regular expression patterns given in a filter. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: regex: doesn't match any caseless string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: doesn't match any caseless string of
Path:
Filter:
#
Outputcontains any line of
#
Operator: Returns an entire value if any of the elements matches any line of a text given in a filter, `null` otherwise.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: contains any line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: contains any line of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: contains any line of
Path:
Filter:
#
Outputcontains any caseless line of
#
Operator: Returns an entire value if any of the elements matches any line of a text given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: contains any caseless line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: contains any caseless line of
Path:
Filter:
#
Outputdoesn't contain any line of
#
Operator: Returns an entire value if all of the elements doesn't match any line of a text given in a filter, `null` otherwise.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't contain any line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't contain any line of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't contain any line of
Path:
Filter:
#
Outputdoesn't contain any caseless line of
#
Operator: Returns an entire value if all of the elements doesn't match any line of a text given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
string
#
Example 1#
Input#
FilterOperator: doesn't contain any caseless line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't contain any caseless line of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't contain any caseless line of
Path:
Filter:
#
Outputcontains any string of
#
Operator: Returns an entire value if any of the elements matches any strings given in a filter, `null` otherwise.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: contains any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: contains any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: contains any string of
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: contains any string of
Path:
Filter:
#
Outputcontains any caseless line of
#
Operator: Returns an entire value if any of the elements matches any strings given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: contains any caseless line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: contains any caseless line of
Path:
Filter:
#
Outputdoesn't contain any string of
#
Operator: Returns an entire value if all of the elements doesn't match any strings given in a filter, `null` otherwise.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: doesn't contain any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't contain any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't contain any string of
Path:
Filter:
#
Outputdoesn't contain any caseless line of
#
Operator: Returns an entire value if all of the elements doesn't match any strings given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: doesn't contain any caseless line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: doesn't contain any caseless line of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: doesn't contain any caseless line of
Path:
Filter:
#
Outputwildcard: contains any string of
#
Operator: Returns an entire value if any of the elements matches any wildcard patterns given in a filter, `null` otherwise.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: wildcard: contains any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: contains any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: wildcard: contains any string of
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: wildcard: contains any string of
Path:
Filter:
#
Outputwildcard: contains any caseless string of
#
Operator: Returns an entire value if any of the elements matches any wildcard patterns given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: wildcard: contains any caseless string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: contains any caseless string of
Path:
Filter:
#
Outputwildcard: doesn't contain any string of
#
Operator: Returns an entire value if all of the elements doesn't match any wildcard patterns given in a filter, `null` otherwise.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: wildcard: doesn't contain any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: doesn't contain any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: wildcard: doesn't contain any string of
Path:
Filter:
#
Outputwildcard: doesn't contain any caseless line of
#
Operator: Returns an entire value if all of the elements doesn't match any wildcard patterns given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: wildcard: doesn't contain any caseless line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: wildcard: doesn't contain any caseless line of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: wildcard: doesn't contain any caseless line of
Path:
Filter:
#
Outputregex: contains any string of
#
Operator: Returns an entire value if any of the elements matches any regular expression patterns given in a filter, `null` otherwise.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: regex: contains any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: contains any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: regex: contains any string of
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: regex: contains any string of
Path:
Filter:
#
Outputregex: contains any caseless string of
#
Operator: Returns an entire value if any of the elements matches any regex patterns given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: regex: contains any caseless string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: contains any caseless string of
Path:
Filter:
#
Outputregex: doesn't contain any string of
#
Operator: Returns an entire value if all of the elements doesn't match any regex patterns given in a filter, `null` otherwise.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: regex: doesn't contain any string of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: doesn't contain any string of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: regex: doesn't contain any string of
Path:
Filter:
#
Outputregex: doesn't contain any caseless line of
#
Operator: Returns an entire value if all of the elements doesn't match any regex patterns given in a filter, `null` otherwise. The matching is peformed case-insensitively.
Filter Format:
<JSON string> or <JSON array of string>
#
Example 1#
Input#
FilterOperator: regex: doesn't contain any caseless line of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: doesn't contain any caseless line of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: regex: doesn't contain any caseless line of
Path:
Filter:
#
Outputmatches expressions of
#
Operator: Returns the result of a value filtered by `expressions` given. See `Filter Syntax` for the details of `expressions`.
Filter Format:
expressions
#
Example 1#
Input#
FilterOperator: matches expressions of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: matches expressions of
Path: Domain
Filter:
#
Outputmatches conditions of
#
Operator: Returns the result of a value filtered by `conditions` given. See `Filter Syntax` for the details of `conditions`.
Filter Format:
conditions
#
Example 1#
Input#
FilterOperator: matches conditions of
Path: Events
Filter:
#
Output#
Example 2#
Input#
FilterOperator: matches conditions of
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: matches conditions of
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: matches conditions of
Path:
Filter:
#
Outputvalue matches expressions of
#
Operator: Evaluates each value of dictionary elements or each element for values whose data type is not `dictionary`, and returns a set of the elements matched to expressions given in a filter. See `Filter Syntax` for the details of `expressions`.
Filter Format:
expressions
#
Example 1#
Input#
FilterOperator: value matches expressions of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: value matches expressions of
Path: Communication
Filter:
#
Outputvalue matches conditions of
#
Operator: Evaluates each value of dictionary elements, and returns a set of the elements matched to conditions given in a filter. See `Filter Syntax` for the details of `conditions`.
Filter Format:
conditions
#
Example 1#
Input#
FilterOperator: value matches conditions of
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: value matches conditions of
Path:
Filter:
#
Outputjson: encode array
#
Operator: Returns an string in JSON which is encoded the entire value.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|---|---|
indent | int | The number of spaces per indent (Default: None) |
#
Example 1#
Input#
FilterOperator: json: encode array
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: json: encode array
Path:
Filter:
#
Outputjson: encode
#
Operator: Encodes each element and returns a set of JSON-encoded string.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|---|---|
indent | int | The number of spaces per indent (Default: None) |
#
Example 1#
Input#
FilterOperator: json: encode
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: json: encode
Path:
Filter:
#
Outputjson: decode
#
Operator: Returns a set of JSON decoded-values from the each element.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
Input#
FilterOperator: json: decode
Path:
Filter:
#
Outputbase64: encode
#
Operator: Encodes each element and returns a set of BASE64-encoded string.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
Input#
FilterOperator: base64: encode
Path:
Filter:
#
Outputbase64: decode
#
Operator: Returns a set of BASE64 decoded-values from the each element.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
Input#
FilterOperator: base64: decode
Path:
Filter:
#
Outputdigest
#
Operator: Create a set of secure hash value for each element.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|---|---|
algorithm | string | Secure hash algorithm (Default: sha256). See python hashlib for algorithm names. |
#
Example 1#
Input#
FilterOperator: digest
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: digest
Path:
Filter:
#
Outputis replaced with
#
Operator: Replaces an entire value with a value given in a filter.
Filter Format:
<JSON value>
#
Example 1#
Input#
FilterOperator: is replaced with
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: is replaced with
Path:
Filter:
#
Outputis updated with
#
Operator: If both of the data types are `dicrionary`, all the elements given in a filter are added to the value. All the values are replaced with the value given the existing key. Otherwise, it is simply replaced with a value given in a filter.
Filter Format:
<JSON value>
#
Example 1#
Input#
FilterOperator: is updated with
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: is updated with
Path:
Filter:
#
Outputappends
#
Operator: Appends all the elements given in a filter to the value.
Filter Format:
<JSON value>
#
Example 1#
Input#
FilterOperator: appends
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: appends
Path:
Filter:
#
Outputif-then-else
#
Operator: Evaluates each element with `if` condition, and returns a set of the results of `then` or `else` operations. If `if` condition is not given or returns any value, `then` operation is executed, otherwise `else` operation is executed.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|---|---|
if | expressions | (Optional) if condition |
then | expressions | Conditions to execute if if condition is not given or returns any value. |
else | expressions | (Optional) Conditions to execute if if returns null . |
lhs | expressions | (Optional) The value used for the if condition instead of the current element. |
#
Example 1#
Input#
FilterOperator: if-then-else
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: if-then-else
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: if-then-else
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: if-then-else
Path:
ctx_demisto: (in dictionaly, not string)
Filter:
#
Outputswitch-case
#
Operator: Performs expressions for the label whose `expressions` matches the value. If any of `expressions` doesn't match the value, `default` operation is executed.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|---|---|
switch | dict[<label>, expressions] | (Optional) Patterns of conditions. |
default | expressions | (Optional) Conditions to execute if it doesn't match all the switch conditions. |
<label> | expressions | (Optional) Conditions to execute if it matches the conditions given in the label. |
#
Example 1#
Input#
FilterOperator: switch-case
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: switch-case
Path:
Filter:
#
Outputcollects values
#
Operator: Returns a set of <value> of each element. A value is <value> for `dict`, otherwise element itself.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
Input#
FilterOperator: collects values
Path:
Filter: {}
#
Output#
Example 2#
Input#
FilterOperator: collects values
Path:
Filter: {}
#
Outputcollects keys
#
Operator: Returns a set of <key> of each `dict` element.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
Input#
FilterOperator: collects keys
Path:
Filter: {}
#
Outputflattens with values
#
Operator: Returns a set of <value> of all the elements in the tree.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
Input#
FilterOperator: flattens with values
Path:
Filter: {}
#
Outputflattens with keys
#
Operator: Returns a set of <key> of all the `dict` elements in the tree.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
Input#
FilterOperator: flattens with keys
Path:
Filter: {}
#
Outputabort
#
Operator: Raises an exception and exit with the value filtered at the operator. This operator is available for troubleshooting and debugging.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
FilterOperator: abort
Path:
Filter:
email-header: decode
#
Operator: Returns an string which is decoded with the email header encoding manner.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|
(parameter is currently not required)
#
Example 1#
Input#
FilterOperator: email-header: decode
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: email-header: decode
Path:
Filter:
#
Outputregex: replace
#
Operator: Evaluates the pattern matching, and returns the data given in "matched" or "unmatched" according to the result. Returns the data given in "matched" if matched, "unmatch" otherwise.
Filter Format:
dict[str,Any]
Parameter | Data Type | Description |
---|---|---|
pattern | str | A pattern text in regex. |
matched | Any | The data to return when matched. capture groups such as \1 are supported. |
unmatched | Any | (Optional) The data to return when unmatched. If not specified, the value given will return. |
caseless | bool | (Optional) true if the matching performs in case-insensitive, false means case-sensitive. The default value is false. |
dotall | bool | (Optional) . (single dot) matches any of charactors excluding new line charactors by default. true if it matches any of the charactors including them. The default value is false. See re.DOTALL |
multiline | bool | (Optional) true if the matching performs in multi-line mode, false otherwise. The default value is false. See re.MULTILINE |
#
Example 1#
Input#
FilterOperator: regex: replace
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: regex: replace
Path:
Filter:
#
Output#
Example 3#
Input#
FilterOperator: regex: replace
Path:
Filter:
#
Outputis individually transformed with
#
Operator: Transform each element with `transformers` given in a filter. See `Filter Syntax` for the details of `transformers`.
Filter Format:
transformers
#
Example 1#
Input#
FilterOperator: is individually transformed with
Path:
Filter:
#
Output#
Example 2#
Input#
FilterOperator: is individually transformed with
Path: File
Filter:
#
Output#
Example 3#
Input#
FilterOperator: is individually transformed with
Path:
Filter:
#
Output#
Example 4#
Input#
FilterOperator: is individually transformed with
Path:
Filter:
#
Outputis collectively transformed with
#
Operator: Transform elements with `transformers` given in a filter. The elements are handled and transformed as one value at the first level if the type of it is array. See `Filter Syntax` for the details of `transformers`.
Filter Format:
transformers
#
Example 1#
Input#
FilterOperator: is collectively transformed with
Path:
Filter: