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.


Hexadecimal string is always returned in upper-case.


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


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
Sumo Logic YouTubeSumo Logic Twitter
Privacy Statement
Terms of Use

Copyright © 2022 by Sumo Logic, Inc.