<?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: List of top client IP's each with their most common user agent in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189807#M54664</link>
    <description>&lt;P&gt;I sure I got your requirement, but try removing the portion of search after "|sort -count" (streamstats). That will list all user agents associated with respective c_ip.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2014 20:09:02 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-06-06T20:09:02Z</dc:date>
    <item>
      <title>List of top client IP's each with their most common user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189804#M54661</link>
      <description>&lt;P&gt;I am trying to find a search command that will get me a list of my top 20 client ip addresses (c_ip) along with each given ip's top 1 user agent (cs_User_Agent_).&lt;/P&gt;

&lt;P&gt;In laymans code: ... | top 20 c_ip each with top cs_User_Agent_&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189804#M54661</guid>
      <dc:creator>soundchaos</dc:creator>
      <dc:date>2020-09-28T16:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: List of top client IP's each with their most common user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189805#M54662</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourIndex sourcetype=yourSourcetype [search index=yourIndex sourcetype=yourSourcetype| top 20 c_ip | table c_ip]| stats count by c_ip,cs_User_Agent_ | sort - count | streamstats count as sno by c_ip | where sno=1 | table c_ip,cs_User_Agent_
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jun 2014 20:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189805#M54662</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-05T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: List of top client IP's each with their most common user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189806#M54663</link>
      <description>&lt;P&gt;Thank you! This is beautiful. Any ideas on how I might also compare each of these top IP's and show a readable list of how many / which user agents are associated, rather than just the single most common one?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 17:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189806#M54663</guid>
      <dc:creator>soundchaos</dc:creator>
      <dc:date>2014-06-06T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: List of top client IP's each with their most common user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189807#M54664</link>
      <description>&lt;P&gt;I sure I got your requirement, but try removing the portion of search after "|sort -count" (streamstats). That will list all user agents associated with respective c_ip.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 20:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-client-IP-s-each-with-their-most-common-user-agent/m-p/189807#M54664</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-06T20:09:02Z</dc:date>
    </item>
  </channel>
</rss>

