<?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: group search results by hour of day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/group-search-results-by-hour-of-day/m-p/547733#M155328</link>
    <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I already tried "group by date_hour" before posting here. It didn't give me the right results I was looking for.&lt;BR /&gt;I found another post with an answer. What worked for me in the end was:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myIndex status=12 user="gerbert"
| eval hour = strftime(_time, "%H")
| stats count by hour
| sort hour&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 08:50:07 GMT</pubDate>
    <dc:creator>gerbert</dc:creator>
    <dc:date>2021-04-13T08:50:07Z</dc:date>
    <item>
      <title>group search results by hour of day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-search-results-by-hour-of-day/m-p/547728#M155325</link>
      <description>&lt;P&gt;Hi splunk community,&lt;/P&gt;&lt;P&gt;I feel like this is a very basic question but I couldn't get it to work.&lt;BR /&gt;&lt;BR /&gt;I want to search my index for the last 7 days and want to group my results by hour of the day. So the result should be a column chart with 24 columns.&lt;BR /&gt;So for example my search looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myIndex status=12 user="gerbert"
| table status user _time&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I want a chart that tells me how many counts i got over the last 7 days grouped by the hour of the day for a specific user and status number.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;gerbert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 08:12:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-search-results-by-hour-of-day/m-p/547728#M155325</guid>
      <dc:creator>gerbert</dc:creator>
      <dc:date>2021-04-13T08:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: group search results by hour of day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-search-results-by-hour-of-day/m-p/547732#M155327</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=myIndex status=12 user="gerbert"
| stats count by date_hour&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Apr 2021 08:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-search-results-by-hour-of-day/m-p/547732#M155327</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-13T08:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: group search results by hour of day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/group-search-results-by-hour-of-day/m-p/547733#M155328</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I already tried "group by date_hour" before posting here. It didn't give me the right results I was looking for.&lt;BR /&gt;I found another post with an answer. What worked for me in the end was:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myIndex status=12 user="gerbert"
| eval hour = strftime(_time, "%H")
| stats count by hour
| sort hour&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 08:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/group-search-results-by-hour-of-day/m-p/547733#M155328</guid>
      <dc:creator>gerbert</dc:creator>
      <dc:date>2021-04-13T08:50:07Z</dc:date>
    </item>
  </channel>
</rss>

