Quantcast
Channel: Questions in topic: "props.conf"
Viewing all articles
Browse latest Browse all 1485

EVAL not working in props.conf but works fine in search for converting IP address from decimal to IPv4

$
0
0
Hello Experts, I have a field called "src" which contains IP addresses in decimal format but I want to change the format to IPv4. I have an eval as mentioned below: WORKS FINE FOR INLINE SEARCH eval remainder=src | eval firstoctet=floor(remainder/pow(256,3)) | eval remainder=remainder-(firstoctet*pow(256,3)) | eval secondoctet=floor(remainder/pow(256,2)) | eval remainder=remainder-secondoctet*pow(256,2) | eval thirdoctet=floor(remainder/pow(256,1)) | eval remainder=remainder-thirdoctet*pow(256,1) | eval src_ip=firstoctet+"."+secondoctet+"."+thirdoctet+"."+remainder DOESN'T WORK FINE WHEN USED IN PROPS.CONF eval-remainder=src | eval firstoctet=floor(remainder/pow(256,3)) | eval remainder=remainder-(firstoctet*pow(256,3)) | eval secondoctet=floor(remainder/pow(256,2)) | eval remainder=remainder-secondoctet*pow(256,2) | eval thirdoctet=floor(remainder/pow(256,1)) | eval remainder=remainder-thirdoctet*pow(256,1) | eval src_ip=firstoctet+"."+secondoctet+"."+thirdoctet+"."+remainder Help required. Thanks in advance.

Viewing all articles
Browse latest Browse all 1485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>