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
| Function | Default Argument | Availability | Description |
|---|---|---|---|
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. |