<?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: How can I track time that a user is using VPN access outside the country? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255929#M76637</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;My search&amp;gt;  | iplocation vpn_remote_ip | search Country!="United States" | stats earliest(_time) as logintime by  vpn_user | eval duration=now()-logintime |  eval Day=strftime(logintime,"%m/%d/%Y") | eval duration=tostring(duration, "duration") | rename logintime AS "OCONUS time" | table vpn_user "OCONUS time"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Jul 2016 17:45:09 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-07-14T17:45:09Z</dc:date>
    <item>
      <title>How can I track time that a user is using VPN access outside the country?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255927#M76635</link>
      <description>&lt;P&gt;I have a need to track VPN access outside the country.  I have an alert that triggers when someone accesses the VPN from outside the country but I would like to make another search to track the amount of time they have been outside the country based on the event time stamp.&lt;/P&gt;

&lt;P&gt;Current search to alert on OCONUS VPN use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;My search&amp;gt;  | iplocation vpn_remote_ip | search Country!="United States" | dedup vpn_user,Country | table _time,vpn_user,Country,vpn_remote_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to modify the above search to create a report that would show something like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;User              OCONUS time
User1             15 days
User2              9 days
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2016 15:19:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255927#M76635</guid>
      <dc:creator>digital_alchemy</dc:creator>
      <dc:date>2016-07-14T15:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I track time that a user is using VPN access outside the country?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255928#M76636</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;My search&amp;gt;  | iplocation vpn_remote_ip | search Country!="United States" | eval Day=strftime(_time,"%m/%d/%Y") | stats dc(Day) as "OCONUS time" by  vpn_user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2016 15:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255928#M76636</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-14T15:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I track time that a user is using VPN access outside the country?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255929#M76637</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;My search&amp;gt;  | iplocation vpn_remote_ip | search Country!="United States" | stats earliest(_time) as logintime by  vpn_user | eval duration=now()-logintime |  eval Day=strftime(logintime,"%m/%d/%Y") | eval duration=tostring(duration, "duration") | rename logintime AS "OCONUS time" | table vpn_user "OCONUS time"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jul 2016 17:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255929#M76637</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-14T17:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I track time that a user is using VPN access outside the country?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255930#M76638</link>
      <description>&lt;P&gt;We need an example of both a &lt;CODE&gt;VPN start&lt;/CODE&gt; event and a &lt;CODE&gt;VPN stop&lt;/CODE&gt; event.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 21:50:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-track-time-that-a-user-is-using-VPN-access-outside-the/m-p/255930#M76638</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-15T21:50:53Z</dc:date>
    </item>
  </channel>
</rss>

