<?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 Find the Difference between Timestamps in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Find-the-Difference-between-Timestamps/m-p/171980#M34673</link>
    <description>&lt;P&gt;In Splunk I'm tracking web service calls which have a request/response pairs. So for example we have a Get Delivery Schedule web service which has a SOAP request and response. We have a unique identifier (GUID) tied to the request response pairs which match each other. I want to find the time from when the request was made to the time there was a response. So I was thinking of making a new field which would take the difference between the response timestamp and the request time stamp and applying it to the request event. So then I could search for all the requests by using the GUID and have that response time tied to each request. I then wanted to grab all the response times and export it to Excel so I can do an analysis.  &lt;/P&gt;

&lt;P&gt;Any idea how I could do this? &lt;/P&gt;</description>
    <pubDate>Fri, 02 Jan 2015 15:31:00 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2015-01-02T15:31:00Z</dc:date>
    <item>
      <title>Find the Difference between Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-the-Difference-between-Timestamps/m-p/171980#M34673</link>
      <description>&lt;P&gt;In Splunk I'm tracking web service calls which have a request/response pairs. So for example we have a Get Delivery Schedule web service which has a SOAP request and response. We have a unique identifier (GUID) tied to the request response pairs which match each other. I want to find the time from when the request was made to the time there was a response. So I was thinking of making a new field which would take the difference between the response timestamp and the request time stamp and applying it to the request event. So then I could search for all the requests by using the GUID and have that response time tied to each request. I then wanted to grab all the response times and export it to Excel so I can do an analysis.  &lt;/P&gt;

&lt;P&gt;Any idea how I could do this? &lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2015 15:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-the-Difference-between-Timestamps/m-p/171980#M34673</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-01-02T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find the Difference between Timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-the-Difference-between-Timestamps/m-p/171981#M34674</link>
      <description>&lt;P&gt;Have a look at the &lt;EM&gt;transaction&lt;/EM&gt; command. If your search returns requests and responses with an identifier, all you usually need to do is add something like "| transaction GUIDFIELDNAME"&lt;/P&gt;

&lt;P&gt;Depending on things such as maximum expected request time and if request and response events have identifiers you could make it more reliable by using additional options like &lt;EM&gt;maxspan, startswith,&lt;/EM&gt; and &lt;EM&gt;endswith&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;This command will add some fields to your results, one of which is duration in seconds, and this sounds like what you are after.&lt;/P&gt;

&lt;P&gt;See: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/transaction"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2015 18:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-the-Difference-between-Timestamps/m-p/171981#M34674</guid>
      <dc:creator>chanfoli</dc:creator>
      <dc:date>2015-01-02T18:47:21Z</dc:date>
    </item>
  </channel>
</rss>

