<?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 Tracking user login from different IP within a given time frame in Security</title>
    <link>https://community.splunk.com/t5/Security/Tracking-user-login-from-different-IP-within-a-given-time-frame/m-p/59687#M2006</link>
    <description>&lt;P&gt;I am attempting to identify users who are logging in from 2 or more IPs within a given amount of time. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span="10m" dc(source_ip) as dsip by user 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does appear to work, but it still gives me dsip=1. If I attempt to add &lt;CODE&gt;| where dsip &amp;gt; 1&lt;/CODE&gt; it does not return any results.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks much&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2012 00:48:08 GMT</pubDate>
    <dc:creator>shable</dc:creator>
    <dc:date>2012-09-14T00:48:08Z</dc:date>
    <item>
      <title>Tracking user login from different IP within a given time frame</title>
      <link>https://community.splunk.com/t5/Security/Tracking-user-login-from-different-IP-within-a-given-time-frame/m-p/59687#M2006</link>
      <description>&lt;P&gt;I am attempting to identify users who are logging in from 2 or more IPs within a given amount of time. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span="10m" dc(source_ip) as dsip by user 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does appear to work, but it still gives me dsip=1. If I attempt to add &lt;CODE&gt;| where dsip &amp;gt; 1&lt;/CODE&gt; it does not return any results.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks much&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2012 00:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tracking-user-login-from-different-IP-within-a-given-time-frame/m-p/59687#M2006</guid>
      <dc:creator>shable</dc:creator>
      <dc:date>2012-09-14T00:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user login from different IP within a given time frame</title>
      <link>https://community.splunk.com/t5/Security/Tracking-user-login-from-different-IP-within-a-given-time-frame/m-p/59688#M2007</link>
      <description>&lt;P&gt;If two IPs are used by one user within 10 minutes, but not the 10 minutes being evaluated, then above search would not return results.  Example:  if first IP is used at 12:05 and second IP is used at 12:12 while the the first 10 minute span evaluated is 12:00-12:10 and the second span evaluated 12:10-12:20.&lt;/P&gt;

&lt;P&gt;In this case, we can eliminate artificial boundaries by searching larger periods of time with stats:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user=* src_ip=* | stats dc(src_ip) as dc_src_ip values(src_ip) as src_ip by user | where dc_src_ip &amp;gt; 1 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If we wish to represent this graphically with an area or line chart we could use a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src_ip=* user=*| streamstats dc(src_ip) as dc_src_ip by user | where dc_src_ip &amp;gt; 1 | timechart span=10m dc(src_ip) as dc_src_ip by user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Sep 2012 02:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tracking-user-login-from-different-IP-within-a-given-time-frame/m-p/59688#M2007</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2012-09-14T02:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking user login from different IP within a given time frame</title>
      <link>https://community.splunk.com/t5/Security/Tracking-user-login-from-different-IP-within-a-given-time-frame/m-p/59689#M2008</link>
      <description>&lt;P&gt;How would I add time to  this query so that each IP a user had would be associated with a specific time period? We have an issue with users on wireless who constantly are changing IPs and I'd like to see at what time they had a specific IP.&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 16:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tracking-user-login-from-different-IP-within-a-given-time-frame/m-p/59689#M2008</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-11-04T16:26:45Z</dc:date>
    </item>
  </channel>
</rss>

