On This Page

Home / Search/ Language Reference/ Functions/ Scalar Functions/String Functions

String Functions

A list of all string functions supported by Cribl Search.


NameDescription
base64_decode_toarrayDecodes a base64 string to an array of long values.
base64_decode_tostringDecodes a base64 string to a UTF-8 string.
base64_encode_fromarrayEncodes a base64 string from a bytes array.
base64_encode_tostringEncodes a string as base64 string.
countofCounts occurrences of a substring in a string.
extractGets a match for an RE2 regular expression from a source string.
extract_allGets all matches for an RE2 regular expression from a source string.
extract_jsonGets a specified element out of a JSON text using a path expression.
has_any_indexGets a match for an RE2 regular expression from a source string.
indexofReports the zero-based index of the first occurrence of a specified string within the input string.
isemptyReturns true if the argument is an empty string or is null.
isnotempty (notempty)Returns true if the argument isn’t an empty string, and it isn’t null.
isnotnull (notnull)Returns true if the argument is not null.
isnullIndicates whether the argument evaluates to a null value.
match_regexSearches a text string for a specific pattern defined by a regular expression.
parse_csvSplits a given string representing a single record of comma-separated values.
parse_ipv4Converts IPv4 string to long (signed 64-bit) number representation in big-endian order.
parse_ipv4_maskConverts the input string of IPv4 and netmask to a signed, 64-bit wide, long number representation in big-endian order.
parse_ipv6Converts IPv6 or IPv4 string to a canonical IPv6 string representation.
parse_ipv6_maskConverts IPv6/IPv4 string and netmask to a canonical IPv6 string representation.
parse_json (todynamic)Interprets a string as a JSON value and returns the value as dynamic.
parse_urlParses an absolute URL string and returns a dynamic object that contains URL parts.
parse_urlqueryReturns a dynamic object that contains the Query parameters.
parse_versionConverts the input string representation of version to a comparable decimal number.
replace_regexReplaces all RE2 regular expression matches with another string.
reverseReverses the order of the input string.
splitSplits a given string according to a given delimiter.
strcatConcatenates between 1 and 64 arguments.
strcat_delimConcatenates between 2 and 64 arguments, with a delimiter.
strcmpCompares two strings.
strlenReturns the length, in characters, of the input string.
strrepRepeats given string specified number of times.
substringExtracts a substring from a source string starting from some index to the end of the string.
tolowerConverts a string to lower case.
toupperConverts a string to upper case.
translateReplaces a set of characters with another set of characters in a given string.
trimRemoves all leading and trailing matches of the specified string or regular expression.
trim_endRemoves trailing match of the specified regular expression.
trim_startRemoves leading match of the specified regular expression.
url_decodeConverts encoded URL into a to regular URL representation.
url_encodeConverts characters of the input URL into a format that can be transmitted over the Internet.