<?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 Calculate meantime among requests based on timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58737#M11575</link>
    <description>&lt;P&gt;Hello Folks,&lt;/P&gt;

&lt;P&gt;This time I would like to have the difference between two timestamps, but, considering all the logs in the apache access log file. So, going through the details, I have an apache access log which is giving me the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0.2.1.44 - - [10/Jun/2013 13:39:03:104] "GET /cart.do?action=purchase&amp;amp;itemId=EST-13&amp;amp;product_id=K9-CW-01&amp;amp;JSESSIONID=SD8SL1FF5ADFF1 HTTP 1.1" 503 879 "http://shop.gourmet-shop.com/cart.do?action=purchase&amp;amp;itemId=EST-13&amp;amp;product_id=K9-CW-01" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 

101 1.178.233.243 - - [10/Jun/2013 13:34:04:151] "GET /oldlink?item_id=EST-12&amp;amp;JSESSIONID=SD10SL3FF4ADFF2 HTTP 1.1" 200 1312 "http://shop.gourmet-shop.com/category.screen?category_id=BAKING" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 147
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My _time field is working well. My intention is to dynamically have the difference between/among timestamps...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; search ... (10/Jun/2013 13:34:04:151 - 10/Jun/2013 13:39:03:104)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do you guys can help with that?&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2013 13:38:49 GMT</pubDate>
    <dc:creator>wagnerbianchi</dc:creator>
    <dc:date>2013-06-10T13:38:49Z</dc:date>
    <item>
      <title>Calculate meantime among requests based on timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58737#M11575</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;

&lt;P&gt;This time I would like to have the difference between two timestamps, but, considering all the logs in the apache access log file. So, going through the details, I have an apache access log which is giving me the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;0.2.1.44 - - [10/Jun/2013 13:39:03:104] "GET /cart.do?action=purchase&amp;amp;itemId=EST-13&amp;amp;product_id=K9-CW-01&amp;amp;JSESSIONID=SD8SL1FF5ADFF1 HTTP 1.1" 503 879 "http://shop.gourmet-shop.com/cart.do?action=purchase&amp;amp;itemId=EST-13&amp;amp;product_id=K9-CW-01" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 

101 1.178.233.243 - - [10/Jun/2013 13:34:04:151] "GET /oldlink?item_id=EST-12&amp;amp;JSESSIONID=SD10SL3FF4ADFF2 HTTP 1.1" 200 1312 "http://shop.gourmet-shop.com/category.screen?category_id=BAKING" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 147
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My _time field is working well. My intention is to dynamically have the difference between/among timestamps...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; search ... (10/Jun/2013 13:34:04:151 - 10/Jun/2013 13:39:03:104)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do you guys can help with that?&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2013 13:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58737#M11575</guid>
      <dc:creator>wagnerbianchi</dc:creator>
      <dc:date>2013-06-10T13:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate meantime among requests based on timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58738#M11576</link>
      <description>&lt;P&gt;Which two events are you looking to get the time difference between? How can they be identified?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2013 14:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58738#M11576</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-06-10T14:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate meantime among requests based on timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58739#M11577</link>
      <description>&lt;P&gt;This sounds roughly like a transaction.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Abouttransactions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Abouttransactions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When you define a transaction, Splunk will automatically compute &lt;CODE&gt;duration&lt;/CODE&gt; which is the amount of time between the first and last event in the transaction.  &lt;/P&gt;

&lt;P&gt;Also, read Chap 7 of Carasso's book, &lt;A href="http://www.splunk.com/goto/book"&gt;http://www.splunk.com/goto/book&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2013 15:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58739#M11577</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2013-06-10T15:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate meantime among requests based on timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58740#M11578</link>
      <description>&lt;P&gt;This is some data from the AppMgmt demo app, right. What is it that you want to do? Transactions based off IP or JSESSIONID? Neither will work well, as this is generated test data. If you want to play with it anyway, see the link below from &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/278"&gt;@dwaddle&lt;/a&gt;.&lt;/P&gt;

&lt;P&gt;If you just want to see the difference between events for some numerical field, e.g. _time, status, bytes, time_taken, then you could look at the &lt;CODE&gt;delta&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Calculate-meantime-among-requests-based-on-timestamp/m-p/58740#M11578</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T14:04:02Z</dc:date>
    </item>
  </channel>
</rss>

