<?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: Summing up rows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450630#M127597</link>
    <description>&lt;P&gt;@Vijeta please guide&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2019 17:13:06 GMT</pubDate>
    <dc:creator>reverse</dc:creator>
    <dc:date>2019-08-14T17:13:06Z</dc:date>
    <item>
      <title>Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450629#M127596</link>
      <description>&lt;P&gt;My search result is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Date  a.log  a.log.1 a.log.2 b.log b.log.1 b.log.2
8/1       4     3        4       5      6       7
8/2       4     3        4       5      6       7
8/3       4     3        4       5      6       7
8/4       4     3        4       5      6       7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;now X =a.log+ a.log.1+a.log.2&lt;BR /&gt;
now Y =b.log+ b.log.1+b.log.2&lt;/P&gt;

&lt;P&gt;How can I do sum for X &amp;amp; Y for the entire day ?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450629#M127596</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-14T17:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450630#M127597</link>
      <description>&lt;P&gt;@Vijeta please guide&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450630#M127597</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-14T17:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450631#M127598</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;foreach&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval X=0, Y=0 | foreach a.* [eval X = X + &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;] | foreach b.* [eval Y = Y + &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;] | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450631#M127598</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-14T17:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450632#M127599</link>
      <description>&lt;P&gt;@reverse Are these fixed number of fields for a &amp;amp; b? I am not sure what your question is but it seems you want to some these columns for each date&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search| eval X=a.log + a.log.1 + a.log.2| eval Y=b.log+ b.log.1+b.log.2| table Date X Y
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450632#M127599</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-08-14T17:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450633#M127600</link>
      <description>&lt;P&gt;" but it seems you want to some these columns for each date" - yes&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450633#M127600</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-14T17:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450634#M127601</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;addtotals&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... |  addtotals a.log* | rename Total as X | addtotals b.log*  | rename Total as Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450634#M127601</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-14T17:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450635#M127602</link>
      <description>&lt;P&gt;The problem is I have multiple rolled logs suffixed with [.] and [numbers] OR [DATE].&lt;BR /&gt;
for example ..&lt;BR /&gt;
a.log.65&lt;BR /&gt;
a.log.2019-08-10 and so on ..&lt;BR /&gt;
I want to combine all a.logs &lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450635#M127602</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-14T17:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450636#M127603</link>
      <description>&lt;P&gt;@reverse Please see the answers by richgalloway and mayur, that should work for you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450636#M127603</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-08-14T17:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450637#M127604</link>
      <description>&lt;P&gt;worked like charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 17:48:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450637#M127604</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-14T17:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Summing up rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450638#M127605</link>
      <description>&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 03:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summing-up-rows/m-p/450638#M127605</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T03:55:16Z</dc:date>
    </item>
  </channel>
</rss>

