<?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: Adding one more field to a sub-search. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-one-more-field-to-a-sub-search/m-p/18890#M2809</link>
    <description>&lt;P&gt;You can try with (instead of top)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | stats SRC, duration by SPT | sort - count | head 3
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Sep 2013 14:47:03 GMT</pubDate>
    <dc:creator>emaccaferri</dc:creator>
    <dc:date>2013-09-26T14:47:03Z</dc:date>
    <item>
      <title>Adding one more field to a sub-search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-one-more-field-to-a-sub-search/m-p/18889#M2808</link>
      <description>&lt;P&gt;Hey guys ,&lt;/P&gt;

&lt;P&gt;I have created a subsearch for my firewall log files :&lt;/P&gt;

&lt;P&gt;sourcetype="honetnet" [search sourcetype ="honetnet" | top limit=10 SPT | fields SPT] |top limit=3 SRC BY SPT&lt;/P&gt;

&lt;P&gt;The results i get is what i wanted , whereby i search for the top 10 SPT(Source ports) and then search for the top 3 SRC(source ip address) for each source port. However , I would like to add one more field(direction) to show the direction of my connection to my search but I am having difficulties. &lt;/P&gt;

&lt;P&gt;Current output :&lt;BR /&gt;
SPT , SRC ,count , percent&lt;/P&gt;

&lt;P&gt;New output:&lt;BR /&gt;
SPT,SRC,&lt;STRONG&gt;direction&lt;/STRONG&gt;,count,percent&lt;/P&gt;

&lt;P&gt;Any ideas? Thanks alot!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 16:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-one-more-field-to-a-sub-search/m-p/18889#M2808</guid>
      <dc:creator>cheukkay</dc:creator>
      <dc:date>2013-07-30T16:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding one more field to a sub-search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-one-more-field-to-a-sub-search/m-p/18890#M2809</link>
      <description>&lt;P&gt;You can try with (instead of top)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | stats SRC, duration by SPT | sort - count | head 3
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Sep 2013 14:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-one-more-field-to-a-sub-search/m-p/18890#M2809</guid>
      <dc:creator>emaccaferri</dc:creator>
      <dc:date>2013-09-26T14:47:03Z</dc:date>
    </item>
  </channel>
</rss>

