Skip to main content
Sumo Logic

decToHex

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

Syntax

  • decToHex(long_field) as hexadecimal_string
  • decToHex("long_string") as hexadecimal_string

Examples

| decToHex("4919") as V    Returns V with a value of 1337

... | count by _collector | decToHex(_count) as v

... | decToHex("70") as d    Returns d with a value of 46