<?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 do I count the total in a subsearch with only totals that are greater than 100. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112963#M29682</link>
    <description>&lt;P&gt;the output looks like this:&lt;BR /&gt;
Source-----------------------Destination-----------------------------subtotal----------------Total&lt;BR /&gt;
1.1.1.1                              2.2.2.2                                                  3                              5&lt;BR /&gt;
                                           3.3.3.3                                                 2                     &lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2015 15:09:23 GMT</pubDate>
    <dc:creator>Dallastek</dc:creator>
    <dc:date>2015-07-10T15:09:23Z</dc:date>
    <item>
      <title>How do I count the total in a subsearch with only totals that are greater than 100.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112961#M29680</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=mysource Name=web_access `myfilter` | stats count(Source_Host) as temp by Source_Host, Dest_Host | sort -temp | eval subtotal = temp."        " | stats list(Source_Host) AS Destination, list(subtotal) as Subtotal, sum(temp) as Total by Dest_Host | eval Total = Total."      " | sort - Total | rename Dest_Host AS Source 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tried a subsearch but, no joy-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=mysource Name=web_access `myfilter` | stats count(Source_Host) as temp by Source_Host, Dest_Host | sort -temp | eval subtotal = temp."        " | stats list(Source_Host) AS Destination, list(subtotal) as Subtotal, sum(temp) as Total by Dest_Host | eval Total = Total."      " | sort - Total | rename Dest_Host AS Source | search | stats count by  Source, Total | where count &amp;gt;100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 14:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112961#M29680</guid>
      <dc:creator>Dallastek</dc:creator>
      <dc:date>2015-07-10T14:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the total in a subsearch with only totals that are greater than 100.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112962#M29681</link>
      <description>&lt;P&gt;that is actually two separate searches, It all got mushed together when I posted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 14:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112962#M29681</guid>
      <dc:creator>Dallastek</dc:creator>
      <dc:date>2015-07-10T14:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the total in a subsearch with only totals that are greater than 100.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112963#M29682</link>
      <description>&lt;P&gt;the output looks like this:&lt;BR /&gt;
Source-----------------------Destination-----------------------------subtotal----------------Total&lt;BR /&gt;
1.1.1.1                              2.2.2.2                                                  3                              5&lt;BR /&gt;
                                           3.3.3.3                                                 2                     &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112963#M29682</guid>
      <dc:creator>Dallastek</dc:creator>
      <dc:date>2015-07-10T15:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the total in a subsearch with only totals that are greater than 100.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112964#M29683</link>
      <description>&lt;P&gt;Again I posted 2 seperate searches to show what I have tried, I dont run BOTH searches&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112964#M29683</guid>
      <dc:creator>Dallastek</dc:creator>
      <dc:date>2015-07-10T15:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the total in a subsearch with only totals that are greater than 100.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112965#M29684</link>
      <description>&lt;P&gt;Sorry if this seems confusing. really what I need is to only show events that are greater than 100 in the total column.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112965#M29684</guid>
      <dc:creator>Dallastek</dc:creator>
      <dc:date>2015-07-10T15:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the total in a subsearch with only totals that are greater than 100.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112966#M29685</link>
      <description>&lt;P&gt;If your first search works, then this should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=mysource Name=web_access `myfilter` | stats count(Source_Host) as temp by Source_Host, Dest_Host | sort -temp | eval subtotal = temp."        " | stats list(Source_Host) AS Destination, list(subtotal) as Subtotal, sum(temp) as Total by Dest_Host | eval count=Total | eval Total = Total."      " | sort - Total | rename Dest_Host AS Source | where count&amp;gt;100 | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BTW, this is not called a &lt;CODE&gt;subsearch&lt;/CODE&gt;, and it confused the question very much that you used that term.  I suppose this might be called a &lt;CODE&gt;postsearch&lt;/CODE&gt;...?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:59:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112966#M29685</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T15:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I count the total in a subsearch with only totals that are greater than 100.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112967#M29686</link>
      <description>&lt;P&gt;That works thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 16:45:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-count-the-total-in-a-subsearch-with-only-totals-that/m-p/112967#M29686</guid>
      <dc:creator>Dallastek</dc:creator>
      <dc:date>2015-07-10T16:45:59Z</dc:date>
    </item>
  </channel>
</rss>

