<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Distance between two or more Geolocations (Lat, Lon,) in Security</title>
    <link>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558498#M12369</link>
    <description>&lt;P&gt;Speed is e.g. when user connected from London and next time from China - in this field you can see with what speed user was traveling. This can be very suspicious in case user in 5 minutes did so. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; distance is in miles but you can recalculate for your needs.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 06:19:33 GMT</pubDate>
    <dc:creator>Gene</dc:creator>
    <dc:date>2021-07-07T06:19:33Z</dc:date>
    <item>
      <title>Distance between two or more Geolocations (Lat, Lon,)</title>
      <link>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558321#M12357</link>
      <description>&lt;P&gt;I'm have a search that pulls in user login info with lat and lon. I'm trying to calculate the distance between two cordinates for the same user name. If there isn't a match on username, I want it to move to the next match and then output the distance between the two with the login time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 15:19:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558321#M12357</guid>
      <dc:creator>Bryon_bowman</dc:creator>
      <dc:date>2021-07-05T15:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Distance between two or more Geolocations (Lat, Lon,)</title>
      <link>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558373#M12360</link>
      <description>&lt;P&gt;Your search&lt;BR /&gt;| eventstats dc(src) as src_count by user&lt;BR /&gt;| search src_count&amp;gt;1&lt;BR /&gt;| sort 0 + _time&lt;BR /&gt;| iplocation src&lt;BR /&gt;| where isnotnull(lat) AND isnotnull(lon)&lt;BR /&gt;| streamstats window=2 global=false earliest(lat) as prev_lat, earliest(lon) as prev_lon, earliest(_time) as prev_time, earliest(src) as prev_src, earliest(City) as prev_city, earliest(Country) as prev_country, earliest(app) as prev_app by user&lt;BR /&gt;| where (src != prev_src)&lt;BR /&gt;| eval lat1_r=((lat * 3.14159265358) / 180), lat2_r=((prev_lat * 3.14159265358) / 180), delta=(((prev_lon - lon) * 3.14159265358) / 180), distance=(3959 * acos(((sin(lat1_r) * sin(lat2_r)) + ((cos(lat1_r) * cos(lat2_r)) * cos(delta))))), distance=round(distance,2)&lt;BR /&gt;| fields - lat1_r, lat2_r, long1_r, long2_r, delta&lt;BR /&gt;| eval time_diff=if((('_time' - prev_time) == 0),1,('_time' - prev_time)), speed=round(((distance * 3600) / time_diff),2)&lt;BR /&gt;| eval prev_time=strftime(prev_time,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| table user, src, _time, City, Country, app, prev_src, prev_time, prev_city, prev_country, prev_app, distance, speed&lt;BR /&gt;&lt;BR /&gt;Hope that will help.&lt;BR /&gt;&lt;BR /&gt;Thanks, Gene&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 09:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558373#M12360</guid>
      <dc:creator>Gene</dc:creator>
      <dc:date>2021-07-06T09:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Distance between two or more Geolocations (Lat, Lon,)</title>
      <link>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558439#M12364</link>
      <description>&lt;P&gt;This looks great. Just two questions...what is speed and is the distance in Kilometers or Miles and speed MPH or KPH?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 15:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558439#M12364</guid>
      <dc:creator>Bryon_bowman</dc:creator>
      <dc:date>2021-07-06T15:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Distance between two or more Geolocations (Lat, Lon,)</title>
      <link>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558498#M12369</link>
      <description>&lt;P&gt;Speed is e.g. when user connected from London and next time from China - in this field you can see with what speed user was traveling. This can be very suspicious in case user in 5 minutes did so. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; distance is in miles but you can recalculate for your needs.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 06:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558498#M12369</guid>
      <dc:creator>Gene</dc:creator>
      <dc:date>2021-07-07T06:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Distance between two or more Geolocations (Lat, Lon,)</title>
      <link>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558601#M12376</link>
      <description>&lt;P&gt;Thank you!! I should have clarified. is the speed in MPH? Also is there a way to add time between the two logins as a column?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 17:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Distance-between-two-or-more-Geolocations-Lat-Lon/m-p/558601#M12376</guid>
      <dc:creator>Bryon_bowman</dc:creator>
      <dc:date>2021-07-07T17:15:34Z</dc:date>
    </item>
  </channel>
</rss>

