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
Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.