<?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 to search for sources IPs with the highest number of distinct/unique HTTP methods? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20505#M3209</link>
    <description>&lt;P&gt;In the end, I ended us using these:&lt;/P&gt;

&lt;P&gt;sourcetype="access_combined_wcookie" OR sourcetype="access_combined"  | stats count by clientip, method | stats count by clientip | sort -count&lt;/P&gt;

&lt;P&gt;and this&lt;/P&gt;

&lt;P&gt;sourcetype="access_combined_wcookie" OR sourcetype="access_combined"  | stats count by clientip, status | stats count by clientip | sort -count&lt;/P&gt;

&lt;P&gt;with GREAT results that led me to some fun web mayhem that was happening.&lt;/P&gt;

&lt;P&gt;Thanks a lot to all involved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:38:17 GMT</pubDate>
    <dc:creator>anton_chuvakin</dc:creator>
    <dc:date>2020-09-28T09:38:17Z</dc:date>
    <item>
      <title>How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20496#M3200</link>
      <description>&lt;P&gt;It seems simple but somehow the answer escapes me. I have Apache http access logs and I want to look for source IPs that produced the highest number of HTTP response codes, methods, etc.&lt;/P&gt;

&lt;P&gt;E.g. 10.10.10.10 only used GET, while 11.11.11.11 used GET, POST, PUT, etc on my webserver. You can see where I am going with this.&lt;/P&gt;

&lt;P&gt;So, what kinda query would do it?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 00:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20496#M3200</guid>
      <dc:creator>anton_chuvakin</dc:creator>
      <dc:date>2011-06-01T00:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20497#M3201</link>
      <description>&lt;P&gt;This (&lt;A href="http://splunk-base.splunk.com/answers/6015/display-field-uniques-in-search"&gt;http://splunk-base.splunk.com/answers/6015/display-field-uniques-in-search&lt;/A&gt;) seems related but isn't quite the same since I need to rank by uniqueness...&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 00:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20497#M3201</guid>
      <dc:creator>anton_chuvakin</dc:creator>
      <dc:date>2011-06-01T00:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20498#M3202</link>
      <description>&lt;P&gt;Here are two examples of what you asked for --&lt;/P&gt;

&lt;P&gt;Most number of methods used, not counting duplicates&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="access_combined" | dedup clientip, method  | top clientip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Most number of unique pages visited&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="access_combined" | dedup clientip, uri  | top clientip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But here are variations that might be more useful --&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="access_combined" | stats count by clientip, method | sort -count

sourcetype="access_combined" | stats count by clientip, uri | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Finally, take it to the next level by clicking the "Build Report" button and making a graph or chart of the results!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 00:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20498#M3202</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-06-01T00:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20499#M3203</link>
      <description>&lt;P&gt;In addition to what lguinn posted, this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="access_combined" | stats distinct_count(method) as dcm by clientip | sort -dcm
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is fairly explicit.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 02:44:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20499#M3203</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-06-01T02:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20500#M3204</link>
      <description>&lt;P&gt;To really figure out what he asked, the last couple should actually look like: &lt;CODE&gt;sourcetype="access_combined" | stats count by clientip, method | stats count by clientip | sort -count&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 02:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20500#M3204</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-06-01T02:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20501#M3205</link>
      <description>&lt;P&gt;Ah, that's a more efficient solution.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 17:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20501#M3205</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-06-01T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20502#M3206</link>
      <description>&lt;P&gt;Well, probably not more efficient, but more clearly corresponding to what you're asking for.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 17:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20502#M3206</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-06-01T17:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20503#M3207</link>
      <description>&lt;P&gt;Thanks a lot for this!!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 22:56:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20503#M3207</guid>
      <dc:creator>anton_chuvakin</dc:creator>
      <dc:date>2011-06-01T22:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20504#M3208</link>
      <description>&lt;P&gt;Thanks a lot for this as well!!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 22:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20504#M3208</guid>
      <dc:creator>anton_chuvakin</dc:creator>
      <dc:date>2011-06-01T22:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for sources IPs with the highest number of distinct/unique HTTP methods?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20505#M3209</link>
      <description>&lt;P&gt;In the end, I ended us using these:&lt;/P&gt;

&lt;P&gt;sourcetype="access_combined_wcookie" OR sourcetype="access_combined"  | stats count by clientip, method | stats count by clientip | sort -count&lt;/P&gt;

&lt;P&gt;and this&lt;/P&gt;

&lt;P&gt;sourcetype="access_combined_wcookie" OR sourcetype="access_combined"  | stats count by clientip, status | stats count by clientip | sort -count&lt;/P&gt;

&lt;P&gt;with GREAT results that led me to some fun web mayhem that was happening.&lt;/P&gt;

&lt;P&gt;Thanks a lot to all involved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-sources-IPs-with-the-highest-number-of/m-p/20505#M3209</guid>
      <dc:creator>anton_chuvakin</dc:creator>
      <dc:date>2020-09-28T09:38:17Z</dc:date>
    </item>
  </channel>
</rss>

