<?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 How to edit my search to get the sum of multiple results per transaction_Id? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-the-sum-of-multiple-results-per/m-p/280689#M84706</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index=inctv starttime=10/07/2015:00:00:00 endtime=10/13/2015:00:00:00 (sourcetype="mysource" OperationName="*MyImpl.*" ActivityStep="rs") 
| eval txn_id=if(transaction_id LIKE "[%]", substr(transaction_id, 2, 36) , transaction_id) 
| chart values(Duration) over txn_id by OperationName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives me results arranged by transaction Ids like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Transaction ID     MyImpl.method1()    MyImpl.method2()    MyImpl.method3()
trx_id1                   3                   4                   6
trx_id2                   5                   6                   7
trx_id3                   5                   5                   5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I want is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Transaction ID      All MyImpl Calls
trx_id1                    13
trx_id2                    17
trx_id3                    15
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am an absolute beginner in Splunk, so it would be very nice if you could explain what your solution does exactly.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2015 05:03:48 GMT</pubDate>
    <dc:creator>pawnalmighty</dc:creator>
    <dc:date>2015-10-15T05:03:48Z</dc:date>
    <item>
      <title>How to edit my search to get the sum of multiple results per transaction_Id?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-the-sum-of-multiple-results-per/m-p/280689#M84706</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=inctv starttime=10/07/2015:00:00:00 endtime=10/13/2015:00:00:00 (sourcetype="mysource" OperationName="*MyImpl.*" ActivityStep="rs") 
| eval txn_id=if(transaction_id LIKE "[%]", substr(transaction_id, 2, 36) , transaction_id) 
| chart values(Duration) over txn_id by OperationName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives me results arranged by transaction Ids like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Transaction ID     MyImpl.method1()    MyImpl.method2()    MyImpl.method3()
trx_id1                   3                   4                   6
trx_id2                   5                   6                   7
trx_id3                   5                   5                   5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I want is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Transaction ID      All MyImpl Calls
trx_id1                    13
trx_id2                    17
trx_id3                    15
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am an absolute beginner in Splunk, so it would be very nice if you could explain what your solution does exactly.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 05:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-the-sum-of-multiple-results-per/m-p/280689#M84706</guid>
      <dc:creator>pawnalmighty</dc:creator>
      <dc:date>2015-10-15T05:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to get the sum of multiple results per transaction_Id?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-the-sum-of-multiple-results-per/m-p/280690#M84707</link>
      <description>&lt;P&gt;You're really close. I think all you need to do is remove &lt;CODE&gt;OperationName&lt;/CODE&gt; from your chart command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart values(Duration) over txn_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;^ However, looking at your serach, I'm guessing that you actually want to use &lt;CODE&gt;list(Duration)&lt;/CODE&gt; instead of &lt;CODE&gt;values(Duration)&lt;/CODE&gt; since it looks like you want to know the value for each and every &lt;CODE&gt;txn_id&lt;/CODE&gt; regardless of uniqueness. Using values will list the value if it hasn't seen it before (it is a unique list). So for example, if two of your &lt;CODE&gt;txn_id&lt;/CODE&gt;'s had the same value, like &lt;CODE&gt;5&lt;/CODE&gt;, you'd only see it listed &lt;STRONG&gt;once&lt;/STRONG&gt; from the &lt;CODE&gt;values()&lt;/CODE&gt; function whereas &lt;CODE&gt;list()&lt;/CODE&gt; doesn't care and just lists out the values, even if things are repeated.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 16:57:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-get-the-sum-of-multiple-results-per/m-p/280690#M84707</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2015-10-16T16:57:39Z</dc:date>
    </item>
  </channel>
</rss>

