I am trying to find the distance between two or more IP geolocations without the use of an external script (not an admin). Here is my base search:
tag=login | geoip src_ip | stats distinct_count(src_ip_country_name) AS count_country, values(src_ip_country_name) AS country by username | where count_country > 1
I know I can find the difference in the latitude and longitude fields. Something like the following:
sqrt(pow(src_ip_latidude1-src_ip_latidude2,2)+pow(src_ip_longitude1-src_ip_logitude2,2))
But how do I incorporate that into my base search? Would I be able to build a table with the geolocations and the distance grouped by username?
Thanks!
... View more