Conversion of hexadecimal to integer

Hiiii

I am using kibana 7.2.0. I have used the function Integer.parseInt() to convert the hexadecimal to integer value, but it is throwing runtime error.

if(doc['hex_value']!=null){return Integer.parseInt(doc['hex_value'].value)}

Can anyone suggest for the error or any other way for the conversion?

@Sruthi1 what is the error you are having? Could you try Integer.parseInt(doc['hex_value'].value, 16); so we can have the right radix in place?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.