<?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: Running Total in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91546#M23589</link>
    <description>&lt;P&gt;yes, but it does not add a seperate column that just has the total of all the counts&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2012 14:26:38 GMT</pubDate>
    <dc:creator>Michael_Schyma1</dc:creator>
    <dc:date>2012-07-05T14:26:38Z</dc:date>
    <item>
      <title>Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91538#M23581</link>
      <description>&lt;P&gt;I am trying to get a running total for the number of events field. I can not get a column that adds up every 'number of events' or a running total anywhere at the bottom. Any Suggestions??&lt;/P&gt;

&lt;P&gt;Heres my search:&lt;/P&gt;

&lt;P&gt;*- fields + app_name, app_id |top app_id app_name |rename 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:01:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91538#M23581</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2020-09-28T12:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91539#M23582</link>
      <description>&lt;P&gt;any help would be appreachated&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91539#M23582</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-05T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91540#M23583</link>
      <description>&lt;P&gt;I doubt that is really your search. Did you paste the whole search or just portions of it?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91540#M23583</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-05T13:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91541#M23584</link>
      <description>&lt;P&gt;+1 Ayn, you'll need to copy and paste your whole search directly if you want any useful help.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91541#M23584</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-07-05T13:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91542#M23585</link>
      <description>&lt;P&gt;Just a portion of it.. I left off the index and the sourcetype because i didnt think it would be needed. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 14:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91542#M23585</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-05T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91543#M23586</link>
      <description>&lt;P&gt;What about the part that generates the statistics? (the count and percent part) unless they are existing fields?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 14:08:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91543#M23586</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-07-05T14:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91544#M23587</link>
      <description>&lt;P&gt;They are existing fields, I need a total of the top events. Not just each individual event&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 14:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91544#M23587</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-05T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91545#M23588</link>
      <description>&lt;P&gt;so you need to use a | stats sum(count) ?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 14:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91545#M23588</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-07-05T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91546#M23589</link>
      <description>&lt;P&gt;yes, but it does not add a seperate column that just has the total of all the counts&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 14:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91546#M23589</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-05T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91547#M23590</link>
      <description>&lt;P&gt;so there is no way to just add a field that will give me a running total for all the events that I am searching for. When i add the sum feature it just takes me to a different screen and then gives me a total instead of having all the information listed and totaling in a different field. Thank you for your help, just having a hard time getting it to work. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 14:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91547#M23590</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-05T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91548#M23591</link>
      <description>&lt;P&gt;Just as a suggestion, this search does a count for events with two distinct values, adds them together, and has the total as a new column.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | stats count(eval(product="abc")) AS abc_count, count(eval(product="xyz")) AS xyz_count by product | eval total_products=abc_count+xyz_count  | sort -total_products
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sorry if this isn't what you're looking for, but hopefully it helps in some way.&lt;/P&gt;

&lt;P&gt;Also you might want to remove the regex tag.. I don't think this has much to do with regular expressions &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 15:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91548#M23591</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2012-07-05T15:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91549#M23592</link>
      <description>&lt;P&gt;From the docs on &lt;CODE&gt;accum&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;accum
Keeps a running total of a specified numeric field.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Accum"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Accum&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 15:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91549#M23592</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-05T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91550#M23593</link>
      <description>&lt;P&gt;Sorry about that, i am not sure how that got there.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 19:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91550#M23593</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-07-05T19:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Running Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91551#M23594</link>
      <description>&lt;P&gt;Nice! Another command that I wasn't previously aware existed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 23:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Running-Total/m-p/91551#M23594</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2012-07-05T23:21:46Z</dc:date>
    </item>
  </channel>
</rss>

