<?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 Start/End time Displaying Same time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Start-End-time-Displaying-Same-time/m-p/168262#M47977</link>
    <description>&lt;P&gt;I have a search where I'd like to show the duration of the order.&lt;/P&gt;

&lt;P&gt;My search below almost gives me that, but the start_time and end_time are showing as the same, giving duration a value of 0.000&lt;/P&gt;

&lt;P&gt;Here is my search:&lt;/P&gt;

&lt;P&gt;index=cg sourcetype=esb_audit esb_top_level=1 NOT bp_bp_name="*Task" svc_context_name="$svc_context_name$" | stats min(_time) as start_time, max(_time) as end_time, earliest(status) as start_status, latest(status) as exit_status, first(other) as exit_message, last(total) as total by svc_context_name, _time |eval duration = (end_time-start_time) |convert ctime(start_time) |convert ctime(end_time) |search exit_status="SUCCESS" |table svc_context_name, start_time, end_time, start_status, exit_status, exit_message, duration&lt;/P&gt;

&lt;P&gt;I've also tried doing ...|stats earliest(time) as start_time, latest(time) as end_time, etc...| But I get the same results.&lt;/P&gt;

&lt;P&gt;Is there a way to modify this search to get more accurate start/end time values?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:59:43 GMT</pubDate>
    <dc:creator>_gkollias</dc:creator>
    <dc:date>2020-09-28T15:59:43Z</dc:date>
    <item>
      <title>Start/End time Displaying Same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Start-End-time-Displaying-Same-time/m-p/168262#M47977</link>
      <description>&lt;P&gt;I have a search where I'd like to show the duration of the order.&lt;/P&gt;

&lt;P&gt;My search below almost gives me that, but the start_time and end_time are showing as the same, giving duration a value of 0.000&lt;/P&gt;

&lt;P&gt;Here is my search:&lt;/P&gt;

&lt;P&gt;index=cg sourcetype=esb_audit esb_top_level=1 NOT bp_bp_name="*Task" svc_context_name="$svc_context_name$" | stats min(_time) as start_time, max(_time) as end_time, earliest(status) as start_status, latest(status) as exit_status, first(other) as exit_message, last(total) as total by svc_context_name, _time |eval duration = (end_time-start_time) |convert ctime(start_time) |convert ctime(end_time) |search exit_status="SUCCESS" |table svc_context_name, start_time, end_time, start_status, exit_status, exit_message, duration&lt;/P&gt;

&lt;P&gt;I've also tried doing ...|stats earliest(time) as start_time, latest(time) as end_time, etc...| But I get the same results.&lt;/P&gt;

&lt;P&gt;Is there a way to modify this search to get more accurate start/end time values?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Start-End-time-Displaying-Same-time/m-p/168262#M47977</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2020-09-28T15:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Start/End time Displaying Same time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Start-End-time-Displaying-Same-time/m-p/168263#M47978</link>
      <description>&lt;P&gt;See my updated answer on your other question &lt;A href="http://answers.splunk.com/answers/124706/help-displaying-duration-of-all-orders-of-a-single-ordertype"&gt;here.&lt;/A&gt;  Does this help?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2014 14:12:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Start-End-time-Displaying-Same-time/m-p/168263#M47978</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2014-02-27T14:12:17Z</dc:date>
    </item>
  </channel>
</rss>

