<?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: How to show the Minimum and Maximum duration for last 90 days in a timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306673#M92009</link>
    <description>&lt;P&gt;Add this to the end of your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _min=99999999, _max=-99999999 
| foreach * [ eval _min = min(_min, &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;), _max = max(_max,&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;) ] 
| rename _min AS MIN _max AS MAS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This adds 2 new lines to your existing chart.&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 18:36:58 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-05-22T18:36:58Z</dc:date>
    <item>
      <title>How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306669#M92005</link>
      <description>&lt;P&gt;Hello guys &lt;/P&gt;

&lt;P&gt;I am displaying a TimeChart of average of Duration and a Baseline for last 30 days..It is working properly. &lt;/P&gt;

&lt;P&gt;Problem :- But now I need to show Min and Max of Duration for Last 90 days in the same timechart. How can I do this.. &lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 15:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306669#M92005</guid>
      <dc:creator>Rohit_Mallah</dc:creator>
      <dc:date>2017-05-22T15:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306670#M92006</link>
      <description>&lt;P&gt;What is your current search to show Average duration for 30 day? It would be possible for us to assist if we had more details of your current search.&lt;/P&gt;

&lt;P&gt;Without having the details of whether 90 days min and max can be included in your current search, you can run a separate search in your dashboard to perform the same and then pass min and max as form tokens (for example &lt;STRONG&gt;tokMin&lt;/STRONG&gt; and &lt;STRONG&gt;tokMax&lt;/STRONG&gt;. In your existing search you can use the following after your current stats and then overlay the fields Max and Min.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Max=$tokMin$ 
| eval Min=$tokMin$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, there might be a possibility to tweak your existing query to perform the same. (On other hand, sometimes running two separate queries may run faster than a single but expensive query with join/append).&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 16:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306670#M92006</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-22T16:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306671#M92007</link>
      <description>&lt;P&gt;Do this at the very end before the &lt;CODE&gt;timechart&lt;/CODE&gt;.  It will add the exact same value for &lt;CODE&gt;minDuration&lt;/CODE&gt; and &lt;CODE&gt;maxDuration&lt;/CODE&gt; to every event, which will allow you to display them as horizontal lines on the chart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventstats min(Duration) as minDuration, max(Duration) as maxDuration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;as far as the &lt;CODE&gt;timechart&lt;/CODE&gt; command itself, it doesn't really matter whether you use min(minDuration) or avg(minDuration) or max(minDuration), since they would all be identical values.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 16:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306671#M92007</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-05-22T16:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306672#M92008</link>
      <description>&lt;P&gt;Without much info, you can try like this. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving _time average and baseline fields for last 30 days
| appendcols [your search to get min and max for last 90 days]
| filldown min max
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There may be better/efficient options but we can only suggest based on your current search.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 17:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306672#M92008</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-22T17:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306673#M92009</link>
      <description>&lt;P&gt;Add this to the end of your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _min=99999999, _max=-99999999 
| foreach * [ eval _min = min(_min, &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;), _max = max(_max,&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;) ] 
| rename _min AS MIN _max AS MAS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This adds 2 new lines to your existing chart.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 18:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306673#M92009</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-22T18:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306674#M92010</link>
      <description>&lt;P&gt;Hi DalJeanis&lt;/P&gt;

&lt;P&gt;Thanks for the reply.. But I am already showing the value of last 30 days in chart and already showing a baseline of average in the same chart. Now I need to display baseline of Min and Max of last 90 days in the same chart (having other data of last 30 days)&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 07:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306674#M92010</guid>
      <dc:creator>Rohit_Mallah</dc:creator>
      <dc:date>2017-05-23T07:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306675#M92011</link>
      <description>&lt;P&gt;Thanks for the Reply.. Yes my current search is showing the average duration for last 30 days.. and it is working fine. But I want to add two new baseline in the same chart(showing data from last 30 days) for Min and Max from last 90 days.. I think we can do this from sub search but not able to get the right query.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 07:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306675#M92011</guid>
      <dc:creator>Rohit_Mallah</dc:creator>
      <dc:date>2017-05-23T07:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306676#M92012</link>
      <description>&lt;P&gt;Thanks somesoni2 for reply&lt;/P&gt;

&lt;P&gt;But can u tell me how to add the condition for last 90 days because in my time picker, I have to select last 30 days. Because all other data has to be from last 30 days.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 07:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306676#M92012</guid>
      <dc:creator>Rohit_Mallah</dc:creator>
      <dc:date>2017-05-23T07:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306677#M92013</link>
      <description>&lt;P&gt;Hi Woodcock&lt;/P&gt;

&lt;P&gt;Thanks for the reply but I think we are not on the same page about the problem I mentioned. &lt;BR /&gt;
I am displaying a data for last 30 days in a chart. in the same chart, I need to display Max and min of last 90 days as well. &lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 08:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306677#M92013</guid>
      <dc:creator>Rohit_Mallah</dc:creator>
      <dc:date>2017-05-23T08:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306678#M92014</link>
      <description>&lt;P&gt;You can override the time range picker by specifying the time range inline in 90 days subsearch. Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=foo earliest=-90d@d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 May 2017 12:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/306678#M92014</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-23T12:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to show the Minimum and Maximum duration for last 90 days in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/526090#M148493</link>
      <description>&lt;P&gt;Shot in the dark, but I just posted an answer over here that might be what you're looking for:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Enterprise/Event-annotation-for-the-min-and-max-value-of-a-field/m-p/526088#M3918" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Enterprise/Event-annotation-for-the-min-and-max-value-of-a-field/m-p/526088#M3918&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically I'm using a secondary annotation search for my chart to pull out the max timespan value (probably a better way to do this...) and then showing an annotation for the max value on my chart with some flavor text.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 19:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-the-Minimum-and-Maximum-duration-for-last-90-days-in/m-p/526090#M148493</guid>
      <dc:creator>thellmann</dc:creator>
      <dc:date>2020-10-22T19:10:53Z</dc:date>
    </item>
  </channel>
</rss>

