<?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 finding peak and low times from timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193594#M55749</link>
    <description>&lt;P&gt;I want to tabulate peak period and low periods for my web transactions. The following search works but not very efficient &lt;/P&gt;

&lt;P&gt;index=web GET OR POST | timechart span=1h count | sort count | head 1 | append [ search index=web  GET OR POST | timechart span=1h count | sort  count | tail 1]&lt;/P&gt;

&lt;P&gt;Does anybody know better search to accomplish this?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2014 14:58:27 GMT</pubDate>
    <dc:creator>kunadkat</dc:creator>
    <dc:date>2014-01-02T14:58:27Z</dc:date>
    <item>
      <title>finding peak and low times from timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193594#M55749</link>
      <description>&lt;P&gt;I want to tabulate peak period and low periods for my web transactions. The following search works but not very efficient &lt;/P&gt;

&lt;P&gt;index=web GET OR POST | timechart span=1h count | sort count | head 1 | append [ search index=web  GET OR POST | timechart span=1h count | sort  count | tail 1]&lt;/P&gt;

&lt;P&gt;Does anybody know better search to accomplish this?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 14:58:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193594#M55749</guid>
      <dc:creator>kunadkat</dc:creator>
      <dc:date>2014-01-02T14:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: finding peak and low times from timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193595#M55750</link>
      <description>&lt;P&gt;There's a max, min  stats functions that may help you:&lt;/P&gt;

&lt;P&gt;(your search) &lt;BR /&gt;
| stats max(count) AS max min(count) AS min &lt;BR /&gt;
| table min max&lt;/P&gt;

&lt;P&gt;This one should work pretty well as I have tested it and verified :&lt;BR /&gt;
index=web GET OR POST | bucket _time span=1h |stats count by _time | eventstats max(count) AS max_count min(count) AS min_count by _time |  timechart max(max_count),min(min_count)&lt;/P&gt;

&lt;P&gt;and a more simplified version: &lt;BR /&gt;
index=web GET OR POST | bucket _time span=1h |stats count by _time | timechart max(count),min(count)&lt;BR /&gt;&lt;BR /&gt;
since the max and min in a given hour is exactly the same&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193595#M55750</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2020-09-28T15:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: finding peak and low times from timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193596#M55751</link>
      <description>&lt;P&gt;Thanks for your quick response, but I am interested in finding Peak and low  time periods and not the count values. The above search gives be max and min counts only&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 15:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193596#M55751</guid>
      <dc:creator>kunadkat</dc:creator>
      <dc:date>2014-01-02T15:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: finding peak and low times from timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193597#M55752</link>
      <description>&lt;P&gt;Do you want to simply know what the lowest and highest values were?  Or what they were and when they occurred?&lt;/P&gt;

&lt;P&gt;If you simply want to know what the highest and lowest values were, then aelliot is absolutely correct.  This search is what he suggested with the "(your search)" part included literally.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web GET OR POST | timechart span=1h count 
| stats max(count) as max, min(count) as min
| table min,max
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Something else that might work is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web GET OR POST | timechart span=1h count 
| eventstats max(count) as high, min(count) as low
| where (count=low OR count=high)
| fields _time, count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You get the high and low, and when they occurred.&lt;/P&gt;

&lt;P&gt;If neither of these are what you want, and if you cannot come up with something that works for you as a variation on one of these then perhaps you'll need to describe your actual request a little more verbosely.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 15:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193597#M55752</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2014-01-02T15:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: finding peak and low times from timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193598#M55753</link>
      <description>&lt;P&gt;You may find this post helpful as well (I believe dwaddle has something similar within his answer)&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/55271/report-hourly-max-count-events-per-day-over-a-month"&gt;http://answers.splunk.com/answers/55271/report-hourly-max-count-events-per-day-over-a-month&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 15:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193598#M55753</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-01-02T15:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: finding peak and low times from timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193599#M55754</link>
      <description>&lt;P&gt;The second search  is what I am looking for and it works Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2014 19:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/finding-peak-and-low-times-from-timechart/m-p/193599#M55754</guid>
      <dc:creator>kunadkat</dc:creator>
      <dc:date>2014-01-02T19:36:23Z</dc:date>
    </item>
  </channel>
</rss>

