<?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 do I search for Day/Time with least amount of events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-Day-Time-with-least-amount-of-events/m-p/375319#M160432</link>
    <description>&lt;P&gt;@bamalone, try the following search for Last 30 days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count latest(_time) as Max WHERE index=_internal BY _time span=3h
| fieldformat Max=strftime(Max,"%m/%a %H:%M")
| eval Time= strftime(_time,"%m/%a")." ".strftime(_time,"%H %p")." - ".strftime(Max,"%H %p") 
| table Time count
| sort count
| head 3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Replace with your index as above one is run anywhere search example with Splunk's &lt;STRONG&gt;_internal&lt;/STRONG&gt; index.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2017 13:13:38 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-07-03T13:13:38Z</dc:date>
    <item>
      <title>How do I search for Day/Time with least amount of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-Day-Time-with-least-amount-of-events/m-p/375318#M160431</link>
      <description>&lt;P&gt;I want to find out which day of the week and time range has the least amount of traffic during the past 30 days during working hours in 3 hour groups.&lt;/P&gt;

&lt;P&gt;The search results should return the day and time range.&lt;/P&gt;

&lt;P&gt;Example: Monday 9am - 12pm.&lt;/P&gt;

&lt;P&gt;Bonus points if you can help me return the top 3 results. Example: Monday 9am - 12pm, Monday 3pm - 6pm and Friday 3pm - 6pm.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 08:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-Day-Time-with-least-amount-of-events/m-p/375318#M160431</guid>
      <dc:creator>bamalone</dc:creator>
      <dc:date>2017-07-03T08:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for Day/Time with least amount of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-Day-Time-with-least-amount-of-events/m-p/375319#M160432</link>
      <description>&lt;P&gt;@bamalone, try the following search for Last 30 days&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count latest(_time) as Max WHERE index=_internal BY _time span=3h
| fieldformat Max=strftime(Max,"%m/%a %H:%M")
| eval Time= strftime(_time,"%m/%a")." ".strftime(_time,"%H %p")." - ".strftime(Max,"%H %p") 
| table Time count
| sort count
| head 3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Replace with your index as above one is run anywhere search example with Splunk's &lt;STRONG&gt;_internal&lt;/STRONG&gt; index.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-Day-Time-with-least-amount-of-events/m-p/375319#M160432</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-03T13:13:38Z</dc:date>
    </item>
  </channel>
</rss>

