<?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 Using Splunk to count within a search - users to ip addresses in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-count-within-a-search-users-to-ip-addresses/m-p/15640#M1953</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have logs in the following format&lt;/P&gt;

&lt;P&gt;2010-06-17 02:04:55 user1 ip.add.ress.here GET /mysite/mypage.html&lt;BR /&gt;
2010-06-17 02:04:59 user1 ip.add.ress.here POST /mysite/mypage2.html&lt;BR /&gt;
2010-06-17 02:05:23 user2 ip.add.ress.here GET /mysite/mypage.html&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;What my question is, is there an easy way to search for all users that have logged in from multiple ip addresses, and also for all ip addresses that have been used by multiple users.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2010 09:40:08 GMT</pubDate>
    <dc:creator>bnolen</dc:creator>
    <dc:date>2010-06-17T09:40:08Z</dc:date>
    <item>
      <title>Using Splunk to count within a search - users to ip addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-count-within-a-search-users-to-ip-addresses/m-p/15640#M1953</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have logs in the following format&lt;/P&gt;

&lt;P&gt;2010-06-17 02:04:55 user1 ip.add.ress.here GET /mysite/mypage.html&lt;BR /&gt;
2010-06-17 02:04:59 user1 ip.add.ress.here POST /mysite/mypage2.html&lt;BR /&gt;
2010-06-17 02:05:23 user2 ip.add.ress.here GET /mysite/mypage.html&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;What my question is, is there an easy way to search for all users that have logged in from multiple ip addresses, and also for all ip addresses that have been used by multiple users.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2010 09:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-count-within-a-search-users-to-ip-addresses/m-p/15640#M1953</guid>
      <dc:creator>bnolen</dc:creator>
      <dc:date>2010-06-17T09:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk to count within a search - users to ip addresses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-count-within-a-search-users-to-ip-addresses/m-p/15641#M1954</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | stats distinct_count(ipaddress) as dcip by user | where dcip &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats distinct_count(user) as dcu by ipaddress | where dcu &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;respectively will do it.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2010 10:21:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-count-within-a-search-users-to-ip-addresses/m-p/15641#M1954</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-17T10:21:23Z</dc:date>
    </item>
  </channel>
</rss>

