How to convert field that contains data in hex format to String

Tags: conversion

#1 MG_655287

Hi,

I want to convert one of the field in audit message from hex to String for better readability. Could you please let me know if there is any function available for this?

Thanks, Mahantesh

#2 konstantinos Nxlog ✓
#1 MG_655287
Hi, I want to convert one of the field in audit message from hex to String for better readability. Could you please let me know if there is any function available for this? Thanks, Mahantesh

Hi Mahantesh,

There is currently no built-in function to convert from Hex to Text, however you'll be able to use im_exec or xm_exec (xm_evec relevant function available only in EE) to achieve this by calling /usr/bin/xxd or run a custom script in one of the supported languages.

Kind regards,

Konstantinos