<?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: Time duration in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71161#M180801</link>
    <description>&lt;P&gt;say there is no time stamp then how can we get the time difference?&lt;/P&gt;

&lt;P&gt;is there any alternative to get time difference without that?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2013 15:01:11 GMT</pubDate>
    <dc:creator>chaitu99</dc:creator>
    <dc:date>2013-03-25T15:01:11Z</dc:date>
    <item>
      <title>Time duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71157#M180797</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;03/22/2013 05:27:59.603 Message 1&lt;BR /&gt;
03/22/2013 05:27:59.920 Message 1&lt;BR /&gt;
03/22/2013 05:28:00.245 Message 1&lt;BR /&gt;
03/22/2013 05:28:00.561 PROTOCOL 5&lt;BR /&gt;
03/22/2013 05:28:00.876 Message &lt;BR /&gt;
03/22/2013 05:28:01.202 FACTOR 6&lt;BR /&gt;
03/22/2013 05:28:01.518 Message 9&lt;BR /&gt;
03/22/2013 05:28:01.520 Message 9&lt;/P&gt;

&lt;P&gt;I need duration between ("message 1" just before  PROTOCOL 5) AND Message 9 just after FACTOR 6&lt;/P&gt;

&lt;P&gt;but i have written query below like..&lt;/P&gt;

&lt;P&gt;source="$SOURCE" |transaction startswith=("Message 1") endswith=("Message 9")|search ("PROTOCOL 5")|stats count perc95(duration) as VALUE&lt;/P&gt;

&lt;P&gt;but that is not working because it is taking first message 1 timestamp value but i need just before PROTOCOL 5 message value.&lt;/P&gt;

&lt;P&gt;Please let me know how to go ahead.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 06:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71157#M180797</guid>
      <dc:creator>chaitu99</dc:creator>
      <dc:date>2013-03-22T06:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71158#M180798</link>
      <description>&lt;P&gt;Change the time frame to 05:28:00.245 - 05:28:01.518. Should work. &lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 07:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71158#M180798</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2013-03-22T07:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71159#M180799</link>
      <description>&lt;P&gt;actually here time stamps are not constant. main thing is we need to find the time difference as stated above.&lt;BR /&gt;
could you please help us?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 08:44:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71159#M180799</guid>
      <dc:creator>chaitu99</dc:creator>
      <dc:date>2013-03-22T08:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71160#M180800</link>
      <description>&lt;P&gt;You can also try using this:&lt;/P&gt;

&lt;P&gt;source="$SOURCE" |transaction startswith=("05:28:00.245 Message 1") endswith=("05:28:01.518 Message 9")|search ("PROTOCOL 5")|stats count perc95(duration) as VALUE&lt;/P&gt;

&lt;P&gt;I think your timestamp should also be available in the event itself..like this:&lt;/P&gt;

&lt;P&gt;Splunk timestamp --&amp;gt; [timestamp, message]&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 10:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71160#M180800</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2013-03-22T10:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71161#M180801</link>
      <description>&lt;P&gt;say there is no time stamp then how can we get the time difference?&lt;/P&gt;

&lt;P&gt;is there any alternative to get time difference without that?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 15:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71161#M180801</guid>
      <dc:creator>chaitu99</dc:creator>
      <dc:date>2013-03-25T15:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Time duration</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71162#M180802</link>
      <description>&lt;P&gt;I think it depends on the fields you defined in your environment. Are there any defined fields "startTime" "EndTime" or any other fields which could refer to each event? &lt;/P&gt;

&lt;P&gt;Or is there no time fields and all fields are the same for message 1 e.g.?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 14:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-duration/m-p/71162#M180802</guid>
      <dc:creator>rechteklebe</dc:creator>
      <dc:date>2013-03-27T14:17:52Z</dc:date>
    </item>
  </channel>
</rss>

