<?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: Reverse running total/ sum needed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99851#M25767</link>
    <description>&lt;P&gt;So, you want a count split by app_id and app_name, plus a total count, with that count at the top?&lt;/P&gt;

&lt;P&gt;How about&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count as "Total Count" | append [search ... | top limit=0 app_id app_name | app_id AS "App Code" app_name AS "Application Name" count AS "Number of Events" percent AS "Percent"]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:05:43 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2020-09-28T12:05:43Z</dc:date>
    <item>
      <title>Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99850#M25766</link>
      <description>&lt;P&gt;I can not figure out how to get the sum of all the information at the top without changing the other fields around. I really just want a sum, but i can not seem to get the stats sum function to work. &lt;BR /&gt;
    |top limit=0  app_id app_name | fields + count, total_count,  percent,app_name, app_id | accum count AS total_count | rename total_count AS "Total Count" app_id AS "App Code" app_name AS "Application Name" count AS "Number of Events" percent AS "Percent"&lt;/P&gt;

&lt;P&gt;Any help would be appreciated, i am just not sure where to go from here i just need a total of all not necessarily a running total&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99850#M25766</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2020-09-28T12:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99851#M25767</link>
      <description>&lt;P&gt;So, you want a count split by app_id and app_name, plus a total count, with that count at the top?&lt;/P&gt;

&lt;P&gt;How about&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count as "Total Count" | append [search ... | top limit=0 app_id app_name | app_id AS "App Code" app_name AS "Application Name" count AS "Number of Events" percent AS "Percent"]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99851#M25767</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2020-09-28T12:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99852#M25768</link>
      <description>&lt;P&gt;I was a total count field that will either display one number of all the events, or a running total that will display the total at the top instead of the bottom.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 13:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99852#M25768</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-16T13:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99853#M25769</link>
      <description>&lt;P&gt;So, does my answer satisfy that requirement?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 14:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99853#M25769</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-16T14:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99854#M25770</link>
      <description>&lt;P&gt;maybe i am just wording it wrong. I just want a total number of events and i can not get it. with your code i get search operation 'app' is unknown&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 14:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99854#M25770</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-16T14:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99855#M25771</link>
      <description>&lt;P&gt;You should be getting a total number of events if you issue the search correctly. Could you show the complete search that you're using now?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 15:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99855#M25771</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-16T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99856#M25772</link>
      <description>&lt;P&gt;index=hik sourcetype="MainframeApps"  | stats count as "Total Count" | append [search index=hik sourcetype="MainframeApps"| top limit=0 app_id app_name | app_id AS "App Code" app_name AS "Application Name" count AS "Number of Events" percent AS "Percent"]&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99856#M25772</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2020-09-28T12:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99857#M25773</link>
      <description>&lt;P&gt;Ah, sorry, my bad - I seem to have left out a "rename" after the last pipe in my search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=hik sourcetype="MainframeApps" | stats count as "Total Count" | append [search index=hik sourcetype="MainframeApps"| top limit=0 app_id app_name | rename app_id AS "App Code" app_name AS "Application Name" count AS "Number of Events" percent AS "Percent"]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jul 2012 15:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99857#M25773</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-16T15:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99858#M25774</link>
      <description>&lt;P&gt;Thank you, I wanted to add the total count to the other fields that were in there and it doesnt seem to want to let me do that. it takes all the other fields away and just gives me a count total instead of adding to the chart that i already have.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 15:37:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99858#M25774</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-16T15:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99859#M25775</link>
      <description>&lt;P&gt;I think you need to post screenshots and more details if we're to have any chance of understanding what you want. I thought I understood, but it seems I was wrong. You said previously that you wanted a total count at the top, but now you're saying that you want to add it to other fields (what fields? where?). It gives you a total count (wasn't that what you wanted?) and takes other fields away (how? are you not seeing any other rows than the one with the total count?)&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 15:41:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99859#M25775</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-16T15:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99860#M25776</link>
      <description>&lt;P&gt;I do want a total count feild that populates how many events are generated from our system. I dont understand how i am not seeing any other fields but a total count when i add the stat function. I just wanted to add the total field to what i had originally. I can not take screenshots here.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 15:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99860#M25776</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-16T15:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99861#M25777</link>
      <description>&lt;P&gt;In that case I'm afraid I can't help you more without understanding your requirement and how it is not being met. In my environment when I issue a very similar query I get a row with a "Total count" in the first column, followed by a number of rows containing the statistics generated by &lt;CODE&gt;top&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 16:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99861#M25777</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-16T16:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse running total/ sum needed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99862#M25778</link>
      <description>&lt;P&gt;Thank you for trying, i dont know why i am not getting the same results&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2012 16:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reverse-running-total-sum-needed/m-p/99862#M25778</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-16T16:24:03Z</dc:date>
    </item>
  </channel>
</rss>

