<?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: In a table how to calculate sum of the values of one column between two specific value of another column ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369520#M164064</link>
    <description>&lt;P&gt;What it should do is create a new column with the values for both of those uris and then the Rex command should remove the sec label and addcoltotals should sum up the new column with the value on a new row at the bottom of the table. &lt;/P&gt;

&lt;P&gt;You’re not seeing the eval command bring both uris into the new field or the rex command Work?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 11:45:09 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2018-01-03T11:45:09Z</dc:date>
    <item>
      <title>In a table how to calculate sum of the values of one column between two specific value of another column ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369517#M164061</link>
      <description>&lt;P&gt;The table output of my splunk query gives me an output like this.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;uri           |                                transaction_time&lt;/STRONG&gt;&lt;BR /&gt;
/se/al/st/o1            |              97 sec&lt;BR /&gt;
&lt;EM&gt;/post/em/sec/w&lt;/EM&gt;       |            16 sec&lt;BR /&gt;
/ret/jim/st/sem         |           20 sec&lt;BR /&gt;
/got/em/sec/w/2       |           33 sec&lt;BR /&gt;
&lt;EM&gt;/gt/ey/sec/d/3&lt;/EM&gt;         |         21 sec&lt;BR /&gt;
/st/em/sec/65            |          12 sec&lt;/P&gt;

&lt;P&gt;I want an add-total of my coulmn "transaction_time" , but it shouldn't add all the values there.&lt;BR /&gt;
It should only add the values  between the uri column value  "/post/em/sec/w"  and "/gt/ey/sec/d/" .&lt;BR /&gt;
i.e. 16 + 20+ 33+ 21 &lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 11:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369517#M164061</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-01-02T11:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: In a table how to calculate sum of the values of one column between two specific value of another column ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369518#M164062</link>
      <description>&lt;P&gt;try adding something like this to the end of your query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval trans_time=if(uri="/post/em/sec/w" OR uri="/gt/ey/sec/d/",transaction_time,null())|rex field=trans_time mode=sed "s/ sec//g"|addcoltotals trans_time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369518#M164062</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-01-02T13:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: In a table how to calculate sum of the values of one column between two specific value of another column ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369519#M164063</link>
      <description>&lt;P&gt;Hi @cmerriman&lt;BR /&gt;
I tried this. It creates another column and gives the value of /post/em/sec/w only. (i.e. 16 sec).&lt;BR /&gt;
It is not adding the sum from "/post/em/sec/w" and "/gt/ey/sec/d/" .&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 07:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369519#M164063</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-01-03T07:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: In a table how to calculate sum of the values of one column between two specific value of another column ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369520#M164064</link>
      <description>&lt;P&gt;What it should do is create a new column with the values for both of those uris and then the Rex command should remove the sec label and addcoltotals should sum up the new column with the value on a new row at the bottom of the table. &lt;/P&gt;

&lt;P&gt;You’re not seeing the eval command bring both uris into the new field or the rex command Work?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 11:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369520#M164064</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-01-03T11:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: In a table how to calculate sum of the values of one column between two specific value of another column ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369521#M164065</link>
      <description>&lt;P&gt;I have removed the sec from the base search so the sec is no more present but just the numeric value.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 11:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369521#M164065</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-01-03T11:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: In a table how to calculate sum of the values of one column between two specific value of another column ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369522#M164066</link>
      <description>&lt;P&gt;And it shouldn't add both those uri. It should add all the values present between those 2 uris.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 11:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369522#M164066</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-01-03T11:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: In a table how to calculate sum of the values of one column between two specific value of another column ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369523#M164067</link>
      <description>&lt;P&gt;It should keep adding the values from "/post/em/sec/w" until it encounters "/gt/ey/sec/d/" . Currently it is only adding an showing the value of /post/em/sec/w  i.e. 16.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 12:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369523#M164067</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-01-03T12:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: In a table how to calculate sum of the values of one column between two specific value of another column ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369524#M164068</link>
      <description>&lt;P&gt;What do you see in the fields shown that indicates the start and end of the values that should be included in your sum?  Based on your question it's unclear, as there appears to be no commonality between the rows &lt;CODE&gt;/post/em/sec/w&lt;/CODE&gt; and &lt;CODE&gt;/gt/ey/sec/d/3&lt;/CODE&gt; (which is what I assume you meant instead of /gt/ey/sec/d, which doesn't exist).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:32:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/In-a-table-how-to-calculate-sum-of-the-values-of-one-column/m-p/369524#M164068</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-03T15:32:11Z</dc:date>
    </item>
  </channel>
</rss>

