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?
Integer.parseInt(doc['hex_value'].value, 16);
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.