tohex()
Converts a binary value to a hexadecimal string. If the parameter value is non-binary, it returns null.
Syntax
tohex(BLOB_EXPR)
Required Parameter
BLOB_EXPR
- Binary value to be converted to hexadecimal number
Usage
json "{}" | eval hex=tohex(encode("abcde")) => "6162636465"
json "{}" | eval hex=tohex(1234) => null
json "{}" | eval hex=tohex(null) => null