Regular Expression Query Functions
LogScale's regex related functions make use of the LogScale regular expression engine. See Regular Expression-based Field Extraction for more information on writing regular expressions.
Table: Regular Expression Query Functions
| Function | Default Argument | Availability | Description |
|---|---|---|---|
array:regex(array, [flags], regex) | array | Â | Checks whether the given pattern matches any of the values of the array and excludes the event from the search result. |
regex([field], [flags], [limit], regex, [repeat], [strict]) | regex | Â | Extracts new fields using a regular expression. |
replace([as], [field], [flags], regex, [replacement], [with]) | regex | Â | Replaces each substring that matches given regular expression with given replacement. |
splitString([as], by, [field], [index]) | field | Â | Splits a string by specifying a regular expression by which to split. |