Encoding Query Functions

LogScale's encoding functions encode or decode field values, such as Base64 and URL-encoded strings, hexadecimal values, bit fields, and integers in other number bases.

Table: Encoding Query Functions

FunctionDefault ArgumentAvailabilityDescription
base64Decode([as], [charset], field)field  Performs Base64 decoding of a field.
base64Encode([as], field)field  Performs Base64 encoding of a field.
bitfield:extractFlags(field, [onlyTrue], output)   Interprets an integer as a bit field and extracts the specified flags.
bitfield:extractFlagsAsArray([asArray], field, flagNames)   Interprets an integer as a bit field and extracts the specified flags. Information is returned as an array, listed in ascending order, from lowest bit to highest bit.
bitfield:extractFlagsAsString([as], field, flagNames, [separator])   Interprets an integer as a bit field and extracts the specified flags. Information is returned as a string, listed in ascending order, from lowest bit to highest bit.
parseHexString([as], [charset], field)field  Parses input from hex encoded bytes, decoding resulting bytes as a string.
parseInt([as], [endian], field, [radix])field  Converts an integer from any radix or base to base-ten, decimal radix.
urlDecode([as], field)field  URL-decodes the contents of a string field.
urlEncode([as], field)field  URL encodes the contents of a string field.