<?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: Returning top 10 values of a unique field and then return top 3 values that accessed that unique field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Returning-top-10-values-of-a-unique-field-and-then-return-top-3/m-p/102061#M26365</link>
    <description>&lt;P&gt;Thank you so much! Really appreciate your help! Cheers &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jul 2013 10:48:52 GMT</pubDate>
    <dc:creator>cheukkay</dc:creator>
    <dc:date>2013-07-21T10:48:52Z</dc:date>
    <item>
      <title>Returning top 10 values of a unique field and then return top 3 values that accessed that unique field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Returning-top-10-values-of-a-unique-field-and-then-return-top-3/m-p/102059#M26363</link>
      <description>&lt;P&gt;I have a firewall log and I would like to get the top 10 ports of a unique field named SPT(source port). After retrieving the top 10 ports , I want to retrieve the top 3 IP addresses with the most counts for each port. My data is something like this :&lt;/P&gt;

&lt;P&gt;SRC=217.208.27.84  SPT=10007 &lt;/P&gt;

&lt;P&gt;SRC=11.11.11.71    SPT=80 &lt;/P&gt;

&lt;P&gt;SRC=209.178.173.93 SPT=1035 &lt;/P&gt;

&lt;P&gt;What i need will be in a format like&lt;/P&gt;

&lt;P&gt;SPT ... SRC .........Count..........Percent&lt;/P&gt;

&lt;P&gt;10....   81.42.1.24 .....50...............50%&lt;BR /&gt;&lt;BR /&gt;
   .......  21.4.2.4 .........35...............35% &lt;BR /&gt;
  .&lt;BR /&gt;&lt;BR /&gt;
........81.52.5.2  .......15...............15% &lt;/P&gt;

&lt;P&gt;23 ...81.42.1.24    .......60...............60%&lt;BR /&gt;&lt;BR /&gt;
   .......  12.32.12.3 .......30...............30% &lt;BR /&gt;
  .&lt;BR /&gt;&lt;BR /&gt;
........823.4.2.4..........10...............10% &lt;/P&gt;

&lt;P&gt;Any idea how??? Thanks alot&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2013 09:42:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Returning-top-10-values-of-a-unique-field-and-then-return-top-3/m-p/102059#M26363</guid>
      <dc:creator>cheukkay</dc:creator>
      <dc:date>2013-07-21T09:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Returning top 10 values of a unique field and then return top 3 values that accessed that unique field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Returning-top-10-values-of-a-unique-field-and-then-return-top-3/m-p/102060#M26364</link>
      <description>&lt;P&gt;This is very similar to the very example that's used for explaining subsearches in the docs:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/Tutorial/Useasubsearch"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/Tutorial/Useasubsearch&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yoursearch&amp;gt; [search &amp;lt;yoursearch&amp;gt; | top 10 spt | fields spt] | top 3 src by spt
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Jul 2013 10:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Returning-top-10-values-of-a-unique-field-and-then-return-top-3/m-p/102060#M26364</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-21T10:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Returning top 10 values of a unique field and then return top 3 values that accessed that unique field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Returning-top-10-values-of-a-unique-field-and-then-return-top-3/m-p/102061#M26365</link>
      <description>&lt;P&gt;Thank you so much! Really appreciate your help! Cheers &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2013 10:48:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Returning-top-10-values-of-a-unique-field-and-then-return-top-3/m-p/102061#M26365</guid>
      <dc:creator>cheukkay</dc:creator>
      <dc:date>2013-07-21T10:48:52Z</dc:date>
    </item>
  </channel>
</rss>

