Create and import custom filters containing queries that match specified patterns with regular expressions (regex).
-
Custom filters support regex in English and for the string data type.
-
Escape (type a backslash before) these characters:
- backslashes (\)
- forward slashes (/)
- quotation marks (")
-
Custom filters do not support character class escape including Unicode and ASCII (American Standard Code for Information Interchange).
-
For more information, see Use regex in Search queries.
Syntax examples
Action
|
Example
|
Explanation
|
Create custom filter
|
endpointHostName: /^(W|m)/ |
|
Import custom filter
|
# imported yaml file detection: selection: CommandLine|re: '([0-9]|[1-9][0-9]|[1-4][0-9]{2})' |
|