<?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 to add a separate column which displays the total of the count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268718#M80819</link>
    <description>&lt;P&gt;Have you tried adding ... | appendpipe [stats sum(count) as Total_Count] &lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2015 20:37:10 GMT</pubDate>
    <dc:creator>rroberts</dc:creator>
    <dc:date>2015-10-09T20:37:10Z</dc:date>
    <item>
      <title>How to add a separate column which displays the total of the count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268716#M80817</link>
      <description>&lt;P&gt;The following is my search &lt;/P&gt;

&lt;P&gt;…..My Search…… | stats count  by orderid,source,host&lt;/P&gt;

&lt;P&gt;Which displays the following results&lt;/P&gt;

&lt;P&gt;orderid                                                    source                                 host             count&lt;BR /&gt;
971729145   /jboss/server/12commerce/log/server.log kvcldprdapp02a  1&lt;BR /&gt;
106283305   /jboss/server/20cap/log/server.log                  kvcldprdapp01b  1&lt;BR /&gt;
147093787   /jboss/server/13commerce/log/server.log kvcldprdapp08b  1&lt;BR /&gt;
569279529   /jboss/server/11commerce/log/server.log kvcldprdapp01a  2&lt;BR /&gt;
670563206   /jboss/server/13commerce/log/server.log kvcldprdapp03b  1&lt;BR /&gt;
862422991   /jboss/server/12commerce/log/server.log kvcldprdapp07b  1&lt;BR /&gt;
038357748   /jboss/server/12commerce/log/server.log kvcldprdapp03b  1&lt;/P&gt;

&lt;P&gt;Now how can i modify my search to display a separate column and shows the total count as follows &lt;/P&gt;

&lt;P&gt;orderid                                                    source                                 host             count      Total_Count &lt;BR /&gt;
971729145   /jboss/server/12commerce/log/server.log kvcldprdapp02a  1               8&lt;BR /&gt;
106283305   /jboss/server/20cap/log/server.log                  kvcldprdapp01b  1&lt;BR /&gt;
147093787   /jboss/server/13commerce/log/server.log kvcldprdapp08b  1&lt;BR /&gt;
569279529   /jboss/server/11commerce/log/server.log kvcldprdapp01a  2&lt;BR /&gt;
670563206   /jboss/server/13commerce/log/server.log kvcldprdapp03b  1&lt;BR /&gt;
862422991   /jboss/server/12commerce/log/server.log kvcldprdapp07b  1&lt;BR /&gt;
038357748   /jboss/server/12commerce/log/server.log kvcldprdapp03b  1&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 17:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268716#M80817</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2015-10-09T17:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a separate column which displays the total of the count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268717#M80818</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;…..My Search…… | stats count by orderid,source,host | eventstats sum(count) as Total_Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Oct 2015 19:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268717#M80818</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-09T19:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a separate column which displays the total of the count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268718#M80819</link>
      <description>&lt;P&gt;Have you tried adding ... | appendpipe [stats sum(count) as Total_Count] &lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 20:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268718#M80819</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2015-10-09T20:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a separate column which displays the total of the count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268719#M80820</link>
      <description>&lt;P&gt;Appendpipe will add a row with total, not the Total as separate column&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 21:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268719#M80820</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-09T21:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a separate column which displays the total of the count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268720#M80821</link>
      <description>&lt;P&gt;Yes, but you'll get the total repeated on each row with eventstats. I think he only wants the grand total displayed once?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 21:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268720#M80821</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2015-10-09T21:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a separate column which displays the total of the count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268721#M80822</link>
      <description>&lt;P&gt;Well I may be wrong with interpretation of his requirement. And when I look at the expected output, yes that's misleading.&lt;BR /&gt;
Guess it upto @pravanae, to decide which format he wanted. &lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 22:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268721#M80822</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-09T22:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a separate column which displays the total of the count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268722#M80823</link>
      <description>&lt;P&gt;Indeed. I could be wrong too!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 22:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-separate-column-which-displays-the-total-of-the/m-p/268722#M80823</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2015-10-09T22:04:07Z</dc:date>
    </item>
  </channel>
</rss>

