In kibana i have field in
kilobit/second format, But to calculate the average and to visualize i would need to convert data into
String speed = doc['speed_download.keyword'].value; long size = Long.parseLong(speed); long k = (size/256.0); long m = (size/1024.0); long g = (size/1048576.0); long t = (size/1073741824.0); return size;
Tried with above configuration and code, but it is not working. I am new to ELK, So can someone help to achieve this using painless(scripted filed) in kibana? it would be great helpful.