<?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 Transaction start and finish times in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-start-and-finish-times/m-p/101423#M21256</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;I have a question about the transaction search command.&lt;/P&gt;

&lt;P&gt;If I am using a transaction on an event that has two timestamps in it, how can I access/use both of the timestamps after the transaction is done for start and finish times?&lt;/P&gt;

&lt;P&gt;Here's an example of one event that has two timestamps in it.&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
1342541754952 environment="prodemea" event_type="JobStarting" component="Job Controller" job_id="cf430a0b-bfcd-4765-891d-253da3607135"&lt;BR /&gt;
1342541758729 environment="prodemea" event_type="JobCompleted" component="Job Controller" job_id="cf430a0b-bfcd-4765-891d-253da3607135"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here's the search that I am doing:&lt;BR /&gt;
&lt;CODE&gt;index=prod (event_type="jobStarting" OR event_type="JobCompleted") | transaction job_id | table _time duration job_id&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The result of the search gives me the start time (_time), the duration of the transaction and the job_id. How can I also get the finish time? (which in this case would be 1342541758729)&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:06:36 GMT</pubDate>
    <dc:creator>Ant1D</dc:creator>
    <dc:date>2020-09-28T12:06:36Z</dc:date>
    <item>
      <title>Transaction start and finish times</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-start-and-finish-times/m-p/101423#M21256</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;I have a question about the transaction search command.&lt;/P&gt;

&lt;P&gt;If I am using a transaction on an event that has two timestamps in it, how can I access/use both of the timestamps after the transaction is done for start and finish times?&lt;/P&gt;

&lt;P&gt;Here's an example of one event that has two timestamps in it.&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
1342541754952 environment="prodemea" event_type="JobStarting" component="Job Controller" job_id="cf430a0b-bfcd-4765-891d-253da3607135"&lt;BR /&gt;
1342541758729 environment="prodemea" event_type="JobCompleted" component="Job Controller" job_id="cf430a0b-bfcd-4765-891d-253da3607135"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here's the search that I am doing:&lt;BR /&gt;
&lt;CODE&gt;index=prod (event_type="jobStarting" OR event_type="JobCompleted") | transaction job_id | table _time duration job_id&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The result of the search gives me the start time (_time), the duration of the transaction and the job_id. How can I also get the finish time? (which in this case would be 1342541758729)&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-start-and-finish-times/m-p/101423#M21256</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2020-09-28T12:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction start and finish times</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-start-and-finish-times/m-p/101424#M21257</link>
      <description>&lt;P&gt;&lt;CODE&gt;_time&lt;/CODE&gt; is an epoch value, so to get the end time you can just add &lt;CODE&gt;duration&lt;/CODE&gt; to the transaction event's timestamp.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval starttime=_time | eval endtime=_time+duration
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jul 2012 17:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-start-and-finish-times/m-p/101424#M21257</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-17T17:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction start and finish times</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Transaction-start-and-finish-times/m-p/101425#M21258</link>
      <description>&lt;P&gt;seems to do the trick. wasn't sure at first that this would work because the &lt;CODE&gt;duration&lt;/CODE&gt; values didn't seem to be in a format that could be added to the start time. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 10:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Transaction-start-and-finish-times/m-p/101425#M21258</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2012-07-18T10:32:27Z</dc:date>
    </item>
  </channel>
</rss>

