<?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 display most popular hour for user logons? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-display-most-popular-hour-for-user-logons/m-p/124994#M25775</link>
    <description>&lt;P&gt;That's exactly what I wanted!! Thanks!!!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2014 15:31:39 GMT</pubDate>
    <dc:creator>hagjos43</dc:creator>
    <dc:date>2014-01-24T15:31:39Z</dc:date>
    <item>
      <title>How do I display most popular hour for user logons?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-display-most-popular-hour-for-user-logons/m-p/124992#M25773</link>
      <description>&lt;P&gt;My searchstring looks like this:&lt;BR /&gt;
    index=123 sourctype=xyz EventCode=4624 | timechart span=1h count&lt;/P&gt;

&lt;P&gt;This gives me Logons by hour, but every hour of every day for the given range. I want it to show the logons by hour over the course of a week for example:&lt;BR /&gt;
0100 - 2&lt;BR /&gt;
0200 - 45&lt;BR /&gt;
0300 - 3&lt;/P&gt;

&lt;P&gt;It would show the logons by most popular hour for any given time range be it week, month, year, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 14:45:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-display-most-popular-hour-for-user-logons/m-p/124992#M25773</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2014-01-24T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display most popular hour for user logons?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-display-most-popular-hour-for-user-logons/m-p/124993#M25774</link>
      <description>&lt;P&gt;Make use of the default-extracted fields &lt;CODE&gt;date_*&lt;/CODE&gt; (&lt;CODE&gt;date_hour&lt;/CODE&gt;, &lt;CODE&gt;date_year&lt;/CODE&gt; etc)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah sourcetype=bleh EventCode=1234 | stats count by date_hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In some cases, these fields are not always extracted, but you can create them yourself;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah sourcetype=bleh EventCode=1234 | eval date_hour = strftime(_time, "%H") | stats count by date_hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 14:59:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-display-most-popular-hour-for-user-logons/m-p/124993#M25774</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-01-24T14:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I display most popular hour for user logons?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-display-most-popular-hour-for-user-logons/m-p/124994#M25775</link>
      <description>&lt;P&gt;That's exactly what I wanted!! Thanks!!!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 15:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-display-most-popular-hour-for-user-logons/m-p/124994#M25775</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2014-01-24T15:31:39Z</dc:date>
    </item>
  </channel>
</rss>

