<?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 How to do this subsearch? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-this-subsearch/m-p/19511#M2965</link>
    <description>&lt;P&gt;Hi~there, i have logs containing "requestURL" and its "Category" per event. it's easy to count top 10 requestURL, and it displays the table containing "requestURL","count","percent" fileds. now if i wanna append one column named Category in each top 10 row. how can i do this search? or must use lookup table? thanks for your kind help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2011 08:26:31 GMT</pubDate>
    <dc:creator>hjwang</dc:creator>
    <dc:date>2011-05-31T08:26:31Z</dc:date>
    <item>
      <title>How to do this subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-this-subsearch/m-p/19511#M2965</link>
      <description>&lt;P&gt;Hi~there, i have logs containing "requestURL" and its "Category" per event. it's easy to count top 10 requestURL, and it displays the table containing "requestURL","count","percent" fileds. now if i wanna append one column named Category in each top 10 row. how can i do this search? or must use lookup table? thanks for your kind help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2011 08:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-this-subsearch/m-p/19511#M2965</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2011-05-31T08:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-this-subsearch/m-p/19512#M2966</link>
      <description>&lt;P&gt;Just add "Category" as a parameter to &lt;CODE&gt;top&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourbasesearch&amp;gt; | top 10 requestURL,Category
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives you the top 10 &lt;EM&gt;pairs&lt;/EM&gt; of requestURL and Category, so if one requestURL would have different values for Category these would be split up, but I'm guessing that is not likely to happen in your logs.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2011 13:20:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-this-subsearch/m-p/19512#M2966</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-05-31T13:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to do this subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-this-subsearch/m-p/19513#M2967</link>
      <description>&lt;P&gt;Thanks,Ayn. i thought top command just use only one field to caculate.i didn't expect it can do such thing.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 03:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-this-subsearch/m-p/19513#M2967</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2011-06-01T03:34:22Z</dc:date>
    </item>
  </channel>
</rss>

