How do you convert IP address data in a splunk field from HEX to the normal 4 octet format?
Asked
Active
Viewed 865 times
0
-
I'm sure you could do it via transforms.conf on the originating forwarder but to be honest it's probably easier to change the original output, what's generating this output? – Chopper3 Jun 04 '15 at 00:26
1 Answers
0
I don't know about "in Splunk", but the conversion is easy - take two hex digits for each octet, put dots between them, convert each pair to decimal.
Many languages have a conversion function, otherwise for a one-off use http://www.binaryhexconverter.com/hex-to-decimal-converter.
e.g. C0A8FE01 -> C0.A8.FE.01 -> 192.A8.FE.01 -> 192.168.FE.01 -> 192.168.254.1
TessellatingHeckler
- 5,676
- 3
- 25
- 44