<?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 Nested Transaction Time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Nested-Transaction-Time/m-p/58697#M14384</link>
    <description>&lt;P&gt;Due to various cross references, I am forced to use nested transactions. In other words, I group several events into a transaction, and then I group several of those transactions in yet another transaction. And it works the way I want it to, except...&lt;/P&gt;

&lt;P&gt;The time of a transaction is the same as the time of the first event. So the duration of the last transaction is calculated as the difference between the starttime of the first transaction and the starttime of the last transaction.&lt;/P&gt;

&lt;P&gt;In stead, I need the difference between the starttime of the first transaction and the endtime of the last transaction.&lt;/P&gt;

&lt;P&gt;How would I go about doing this?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2013 14:43:46 GMT</pubDate>
    <dc:creator>vanaepi</dc:creator>
    <dc:date>2013-06-10T14:43:46Z</dc:date>
    <item>
      <title>Nested Transaction Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Nested-Transaction-Time/m-p/58697#M14384</link>
      <description>&lt;P&gt;Due to various cross references, I am forced to use nested transactions. In other words, I group several events into a transaction, and then I group several of those transactions in yet another transaction. And it works the way I want it to, except...&lt;/P&gt;

&lt;P&gt;The time of a transaction is the same as the time of the first event. So the duration of the last transaction is calculated as the difference between the starttime of the first transaction and the starttime of the last transaction.&lt;/P&gt;

&lt;P&gt;In stead, I need the difference between the starttime of the first transaction and the endtime of the last transaction.&lt;/P&gt;

&lt;P&gt;How would I go about doing this?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2013 14:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Nested-Transaction-Time/m-p/58697#M14384</guid>
      <dc:creator>vanaepi</dc:creator>
      <dc:date>2013-06-10T14:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Transaction Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Nested-Transaction-Time/m-p/58698#M14385</link>
      <description>&lt;P&gt;Don't have a splunk in front of me right now, but I'm guessing something like this might work (adding the &lt;CODE&gt;duration&lt;/CODE&gt; of the last sub-transaction to the &lt;CODE&gt;duration&lt;/CODE&gt; of the 'parent')&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | transaction X | eventstats latest(duration) as latest_dur by X | transaction Y | eval dur = duration+latest_dur 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2013 15:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Nested-Transaction-Time/m-p/58698#M14385</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-06-10T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Transaction Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Nested-Transaction-Time/m-p/58699#M14386</link>
      <description>&lt;P&gt;Yep it did the trick. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2013 15:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Nested-Transaction-Time/m-p/58699#M14386</guid>
      <dc:creator>vanaepi</dc:creator>
      <dc:date>2013-06-10T15:31:16Z</dc:date>
    </item>
  </channel>
</rss>

