<?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: Calculate Transaction Time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32858#M178232</link>
    <description>&lt;P&gt;Just add | timechart avg(duration) to the search. You can pick another aggregation function like median or max if you prefer. You can also add "count" to the timechart to see how many transactions you had.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2010 00:38:25 GMT</pubDate>
    <dc:creator>Stephen_Sorkin</dc:creator>
    <dc:date>2010-08-19T00:38:25Z</dc:date>
    <item>
      <title>Calculate Transaction Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32855#M178229</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;08/17/10,0:15:02,start   load_updates.sh 9.3
08/17/10,0:20:04,start   load_updates.sh 9.3
08/17/10,0:25:02,start   load_updates.sh 9.3
08/17/10,0:30:06,start   load_updates.sh 9.3
08/17/10,0:35:09,start   load_updates.sh 9.3
08/17/10,0:38:02,finish  load_updates.sh 9.3  status 0
08/17/10,0:40:02,start   load_updates.sh 9.3
08/17/10,0:45:09,start   load_updates.sh 9.3
08/17/10,0:49:03,finish  load_updates.sh 9.3  status 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to see a time difference example how long between the first start to finish?
In other words how long did it take to load?  The extra starts are the shell script trying to start again but fails due to a lock file. &lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 23:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32855#M178229</guid>
      <dc:creator>jayvrod</dc:creator>
      <dc:date>2010-08-18T23:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Transaction Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32856#M178230</link>
      <description>&lt;P&gt;Assuming that you want the time from the first start to the first finish line, and in this sample there are two separate times, you should use the &lt;CODE&gt;transaction&lt;/CODE&gt; command. For example:&lt;/P&gt;

&lt;P&gt;source=txnlog | transaction source endswith=finish&lt;/P&gt;

&lt;P&gt;This will assemble the data into transactions with a &lt;CODE&gt;duration&lt;/CODE&gt; field that represents the difference between start and finish times. &lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 23:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32856#M178230</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-18T23:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Transaction Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32857#M178231</link>
      <description>&lt;P&gt;Thanks&lt;BR /&gt;
That helped but Now I get this&lt;BR /&gt;
How do I graph the time?&lt;/P&gt;

&lt;P&gt;For some reason my Far Left Column only shows Hour and Minute seconds is 00.000 PM&lt;/P&gt;

&lt;P&gt;8/17/10&lt;BR /&gt;
3:02:00.000 PM&lt;BR /&gt;&lt;BR /&gt;
08/17/10,0:15:02,start   load_updates.sh 9.3&lt;BR /&gt;
08/17/10,0:20:04,start   load_updates.sh 9.3&lt;BR /&gt;
08/17/10,0:25:02,start   load_updates.sh 9.3&lt;BR /&gt;
08/17/10,0:30:06,start   load_updates.sh 9.3&lt;BR /&gt;
08/17/10,0:35:09,start   load_updates.sh 9.3&lt;BR /&gt;
08/17/10,0:38:02,finish  load_updates.sh 9.3  status 0&lt;BR /&gt;
date_hour=15   Options|  date_hour=20   Options|  date_mday=17   Options|  date_minute=2   Options|  date_minute=4   Options&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32857#M178231</guid>
      <dc:creator>jayvrod</dc:creator>
      <dc:date>2020-09-28T09:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Transaction Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32858#M178232</link>
      <description>&lt;P&gt;Just add | timechart avg(duration) to the search. You can pick another aggregation function like median or max if you prefer. You can also add "count" to the timechart to see how many transactions you had.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 00:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32858#M178232</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-19T00:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Transaction Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32859#M178233</link>
      <description>&lt;P&gt;Thanks&lt;BR /&gt;
but my result is &lt;BR /&gt;
8/12/10 12:00:00.000 AM 158.523810&lt;BR /&gt;
My goal is to see during the day how long for each start - finish combo is it taking to load, in Time. aka at 7am load_updates ran 5 times and it took 2 minutes each time.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 01:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32859#M178233</guid>
      <dc:creator>jayvrod</dc:creator>
      <dc:date>2010-08-19T01:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Transaction Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32860#M178234</link>
      <description>&lt;P&gt;You want something like: source=txnlog earliest=-24h | transaction source endswith=finish | timechart span=1h sum(duration) count&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 03:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-Transaction-Time/m-p/32860#M178234</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-19T03:03:09Z</dc:date>
    </item>
  </channel>
</rss>

