Splunk allows the creation of custom search commands.
Alternatively, you can do this using the existing Splunk search language to solve this problem.
The below solution is intentionally verbose to show the different steps.
First, break the binary into 4 equal
parts (each having a length of 8).
Next, convert each octet to its
decimal form.
Finally, combine the
results.
This example would take an ip_binary=11000000101010000000000000000001 and create an ip_decimal=192.168.0.1
...
| eval ip_binary=substr(ip_binary,1,8) + "." + substr(ip_binary,9,8) + "." + substr(ip_binary,17,8) + "." + substr(ip_binary,25,8)
| makemv delim="." ip_binary
| eval ip_decimal=tostring(tonumber(mvindex(ip_binary,0),2)) + "." + tostring(tonumber(mvindex(ip_binary,1),2)) + "." + tostring(tonumber(mvindex(ip_binary,2),2)) + "." + tostring(tonumber(mvindex(ip_binary,3),2))
... View more