<?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 How to search the average time between two timestamps? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242405#M46993</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to find the difference between two time stamps using the below search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | eval average_response_time = strptime(response, "%d-%m-%Y T%H:%M:%S.%3N") - strptime(request, "%d-%m-%Y T%H:%M:%S.%3N") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have attached the screen shot of it which has request and response..I want to calculate the time difference between them.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 21:26:24 GMT</pubDate>
    <dc:creator>vrmandadi</dc:creator>
    <dc:date>2016-05-10T21:26:24Z</dc:date>
    <item>
      <title>How to search the average time between two timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242405#M46993</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to find the difference between two time stamps using the below search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | eval average_response_time = strptime(response, "%d-%m-%Y T%H:%M:%S.%3N") - strptime(request, "%d-%m-%Y T%H:%M:%S.%3N") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have attached the screen shot of it which has request and response..I want to calculate the time difference between them.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 21:26:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242405#M46993</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2016-05-10T21:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the average time between two timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242406#M46994</link>
      <description>&lt;P&gt;The timeformat should be &lt;CODE&gt;"%d-%b-%Y %H:%M:%S.%3N"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 21:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242406#M46994</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-10T21:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the average time between two timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242407#M46995</link>
      <description>&lt;P&gt;Try ending like this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval average_response_time = tostring((strptime(response, "%d-%b-%Y %H:%M:%S.%3N") - strptime(request, "%d-%b-%Y %H:%M:%S.%3N") ), "duration")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 May 2016 22:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242407#M46995</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-10T22:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the average time between two timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242408#M46996</link>
      <description>&lt;P&gt;thanks Somesh&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 22:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-the-average-time-between-two-timestamps/m-p/242408#M46996</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2016-05-10T22:31:28Z</dc:date>
    </item>
  </channel>
</rss>

