<?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: Finding duration, average time, maximum time for specific logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343415#M101685</link>
    <description>&lt;P&gt;This created transactionId, start, and max_date. It doesn't show the duration though. This is helpful though, I will try to take it from here. &lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2018 16:16:33 GMT</pubDate>
    <dc:creator>pushpender07</dc:creator>
    <dc:date>2018-04-20T16:16:33Z</dc:date>
    <item>
      <title>Finding duration, average time, maximum time for specific logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343411#M101681</link>
      <description>&lt;P&gt;The logging that we do is not perfect hence need some help. &lt;/P&gt;

&lt;P&gt;Log 1 (request) - {"date":"19-04-2018 21:40:11,221", "transactionId":"123", "className":"Class1", "methodName":"login", "elapsedTime":"2284896391"}&lt;BR /&gt;
Log 2 (response)- {"date":"19-04-2018 21:40:11,253", "transactionId":"123", "className":"Class1", "methodName":"login", "elapsedTime":"2317835633"}&lt;/P&gt;

&lt;P&gt;Log 1 is the request, Log 2 is the response. I want to find the duration of each login service request/ response. Transaction id is same in both cases so could be used as a unique value. Not sure what elapsedTime represents. &lt;/P&gt;

&lt;P&gt;Any help would be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 04:48:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343411#M101681</guid>
      <dc:creator>pushpender07</dc:creator>
      <dc:date>2018-04-20T04:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding duration, average time, maximum time for specific logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343412#M101682</link>
      <description>&lt;P&gt;Try something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| transaction transactionId
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it will create duration field.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 05:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343412#M101682</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-20T05:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Finding duration, average time, maximum time for specific logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343413#M101683</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;|  eval date=strptime(date,"%d-%m-%Y %H:%M:%S,%3N")&lt;BR /&gt;
| stats min(date) AS start, max(date) AS max_date BY transactionId&lt;BR /&gt;
| eval duration=max_date-min_date&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343413#M101683</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2020-09-29T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Finding duration, average time, maximum time for specific logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343414#M101684</link>
      <description>&lt;P&gt;Thanks, this helped&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343414#M101684</guid>
      <dc:creator>pushpender07</dc:creator>
      <dc:date>2018-04-20T16:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding duration, average time, maximum time for specific logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343415#M101685</link>
      <description>&lt;P&gt;This created transactionId, start, and max_date. It doesn't show the duration though. This is helpful though, I will try to take it from here. &lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343415#M101685</guid>
      <dc:creator>pushpender07</dc:creator>
      <dc:date>2018-04-20T16:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Finding duration, average time, maximum time for specific logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343416#M101686</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Base Search | stats range(_time) AS duration BY transactionId
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Apr 2018 21:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343416#M101686</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-22T21:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Finding duration, average time, maximum time for specific logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343417#M101687</link>
      <description>&lt;P&gt;Thanks for the help&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 22:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343417#M101687</guid>
      <dc:creator>pushpender07</dc:creator>
      <dc:date>2018-04-23T22:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding duration, average time, maximum time for specific logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343418#M101688</link>
      <description>&lt;P&gt;You might also like to add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval duration=tostring(duration, "duration")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Apr 2018 00:08:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-duration-average-time-maximum-time-for-specific-logs/m-p/343418#M101688</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-24T00:08:42Z</dc:date>
    </item>
  </channel>
</rss>

