<?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: Need Help to find duration of transaction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-to-find-duration-of-transaction/m-p/103049#M26620</link>
    <description>&lt;P&gt;Hi sanyonhhh&lt;/P&gt;

&lt;P&gt;the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Transaction"&gt;transaction&lt;/A&gt; command should provide you with a field called &lt;CODE&gt;duration&lt;/CODE&gt; which is time in seconds for your transaction. But, it could be a floating point value for partial seconds if you have subseconds in your timestamps.&lt;/P&gt;

&lt;P&gt;you can use &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Eval"&gt;eval&lt;/A&gt; to create a human readable time out of it like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval myTime=tostring(duration,"duration")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2013 06:50:30 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2013-10-17T06:50:30Z</dc:date>
    <item>
      <title>Need Help to find duration of transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-to-find-duration-of-transaction/m-p/103048#M26619</link>
      <description>&lt;P&gt;Query used:&lt;/P&gt;

&lt;P&gt;index=[server]| transaction Extract startswith="Value Extract Starting." endswith="extraction completed."&lt;/P&gt;

&lt;P&gt;Log Result:&lt;/P&gt;

&lt;P&gt;1 » 10/4/13 11:39:58.000 PM&lt;BR /&gt;&lt;BR /&gt;
2013-10-04T19:39:58 Extract     STATUS  Value Extract Starting.&lt;/P&gt;

&lt;P&gt;2013-10-04T19:40:02 Extract     STATUS  extraction completed.    &lt;/P&gt;

&lt;P&gt;2 » 10/4/13 11:10:15.000 PM&lt;BR /&gt;&lt;BR /&gt;
2013-10-04T19:10:15 Extract     STATUS  Value Extract Starting. &lt;/P&gt;

&lt;P&gt;2013-10-04T19:10:21 Extract     STATUS  extraction completed.&lt;/P&gt;

&lt;P&gt;Need to find the time difference in a transaction for start and end line. Time is present in both the lines. &lt;BR /&gt;
Eg: From the first event i should get time differnce from 2013-10-04T19:39:58 and 2013-10-04T19:40:02 and should plot it as x-axis day and y-axis time difference.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 05:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-to-find-duration-of-transaction/m-p/103048#M26619</guid>
      <dc:creator>sanyonhhh</dc:creator>
      <dc:date>2013-10-17T05:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to find duration of transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-to-find-duration-of-transaction/m-p/103049#M26620</link>
      <description>&lt;P&gt;Hi sanyonhhh&lt;/P&gt;

&lt;P&gt;the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Transaction"&gt;transaction&lt;/A&gt; command should provide you with a field called &lt;CODE&gt;duration&lt;/CODE&gt; which is time in seconds for your transaction. But, it could be a floating point value for partial seconds if you have subseconds in your timestamps.&lt;/P&gt;

&lt;P&gt;you can use &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Eval"&gt;eval&lt;/A&gt; to create a human readable time out of it like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval myTime=tostring(duration,"duration")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 06:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-to-find-duration-of-transaction/m-p/103049#M26620</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-10-17T06:50:30Z</dc:date>
    </item>
  </channel>
</rss>

