Skip to main content

decToHex Search Operator

The decToHex operator converts a long value of 16 or fewer digits to a hexadecimal string using Two's Complement for negative values.

note

Hexadecimal string is always returned in upper-case.

Syntax‚Äč

decToHex(<long_field>) as <field>
decToHex("<long_string>") as <field>

Examples‚Äč

The following returns V with a value of 1337:

| decToHex("4919") as V
... | count by _collector | decToHex(_count) as v

The following returns d with a value of 46:

... | decToHex("70") as d
Legal
Privacy Statement
Terms of Use

Copyright © 2023 by Sumo Logic, Inc.