<?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: Why are we encountering an issue while fetching response time? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441445#M29078</link>
    <description>&lt;P&gt;Hi @sagar1992 &lt;/P&gt;

&lt;P&gt;This should subtract the two epoch values and round to the second.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval it = strptime(request, "%Y-%m-%dT%H:%M:%S") | eval ot = strptime(response, "%Y-%m-%dT%H:%M:%S") | eval diff_sec =round(ot - it,0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Mar 2019 11:00:17 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2019-03-15T11:00:17Z</dc:date>
    <item>
      <title>Why are we encountering an issue while fetching response time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441442#M29075</link>
      <description>&lt;P&gt;HI Team,&lt;/P&gt;

&lt;P&gt;I am using below query, but i want diff column in seconds format, but not sure, it is showing 00:00:19.000000.&lt;/P&gt;

&lt;P&gt;I just have to minus response-request. have converted to epoch also.&lt;/P&gt;

&lt;P&gt;2019-03-15T05:57:02 - 2019-03-15T05:56:43 ==  result should be in sec&lt;/P&gt;

&lt;P&gt;query is below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test_mulesoft" source=RoyalCaninOMSDev "*ProcessOrder*" | rex field=_raw "corelationid.*:\W+(?.*)\"" |  eval DateTime=strftime(_time,"%Y-%m-%dT%H:%M:%S") | eventstats earliest(DateTime) as request, latest(DateTime) as response by Request_Id  | eval it = strptime(request, "%Y-%m-%dT%H:%M:%S") | eval ot = strptime(response, "%Y-%m-%dT%H:%M:%S") | eval diff = tostring((ot - it), "duration") | table Request_Id,request,response,it,ot,diff
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6689i8028D76D4E91EC40/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;ext]&lt;A href="https://answers.splunk.comstorage/temp/271593-response.jpg"&gt;1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Sagar&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 09:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441442#M29075</guid>
      <dc:creator>sagar1992</dc:creator>
      <dc:date>2019-03-15T09:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we encountering an issue while fetching response time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441443#M29076</link>
      <description>&lt;P&gt;hi @sagar1992 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test_mulesoft" source=RoyalCaninOMSDev "ProcessOrder" | rex field=_raw "corelationid.:\W+(?.)\"" | eval DateTime=strftime(_time,"%Y-%m-%dT%H:%M:%S") | eventstats earliest(DateTime) as request, latest(DateTime) as response by Request_Id | eval it = strptime(request, "%Y-%m-%dT%H:%M:%S") | eval ot = strptime(response, "%Y-%m-%dT%H:%M:%S") | eval diff = ot - it
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Mar 2019 09:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441443#M29076</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2019-03-15T09:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we encountering an issue while fetching response time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441444#M29077</link>
      <description>&lt;P&gt;it is doing subtraction of epoch, i need that output to be in seconds.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 10:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441444#M29077</guid>
      <dc:creator>sagar1992</dc:creator>
      <dc:date>2019-03-15T10:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we encountering an issue while fetching response time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441445#M29078</link>
      <description>&lt;P&gt;Hi @sagar1992 &lt;/P&gt;

&lt;P&gt;This should subtract the two epoch values and round to the second.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval it = strptime(request, "%Y-%m-%dT%H:%M:%S") | eval ot = strptime(response, "%Y-%m-%dT%H:%M:%S") | eval diff_sec =round(ot - it,0)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Mar 2019 11:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441445#M29078</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-15T11:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we encountering an issue while fetching response time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441446#M29079</link>
      <description>&lt;P&gt;Awesome, This Worked!!&lt;/P&gt;

&lt;P&gt;Thanks @nickhillscpl &lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 12:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441446#M29079</guid>
      <dc:creator>sagar1992</dc:creator>
      <dc:date>2019-03-15T12:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we encountering an issue while fetching response time?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441447#M29080</link>
      <description>&lt;P&gt;Glad to have helped. Please upvote to help others in the future! &lt;BR /&gt;
All the best. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 12:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-we-encountering-an-issue-while-fetching-response-time/m-p/441447#M29080</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-15T12:02:57Z</dc:date>
    </item>
  </channel>
</rss>

