Skip to main content

hexToAscii Search Operator

The hexToAscii operator converts a hexadecimal string to an ASCII string.

Syntax

hexToAscii(<hexadecimal_field>) as <field>

hexToAscii("<hexadecimal string>") as <field>

Examples

Convert a literal hex string

The following returns V with a value of hello world:

| hexToAscii("68656c6c6f20776f726c640a") as V

Convert a hex-encoded field from log data

To decode a hex-encoded session token parsed from application logs:

=application/backend
| parse "session_hex=*," as session_hex
| hexToAscii(session_hex) as session_token
Status
Legal
Privacy Statement
Terms of Use
CA Privacy Notice

Copyright © 2026 by Sumo Logic, Inc.