<?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: event count, per user, per hour in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56391#M13815</link>
    <description>&lt;P&gt;Yeah you could do a subsearch and use that on the initial search.  Something like below but you may need to play with it a bit.&lt;/P&gt;

&lt;P&gt;host=&amp;lt; myhost &amp;gt; eventtype=&amp;lt; my event type &amp;gt; [ search host=&amp;lt; myhost &amp;gt; eventtype=&amp;lt; my event type &amp;gt; | top user | table user]  | bucket _time span=1h | stats count by _time,user | sort - count | head&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Storm/Storm/User/Useasubsearch"&gt;http://docs.splunk.com/Documentation/Storm/Storm/User/Useasubsearch&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2013 14:44:20 GMT</pubDate>
    <dc:creator>okrabbe_splunk</dc:creator>
    <dc:date>2013-06-06T14:44:20Z</dc:date>
    <item>
      <title>event count, per user, per hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56384#M13808</link>
      <description>&lt;P&gt;So i'm attempting to count a specific event type, per user, per hour. I only want the tope ten users, and I thought the 'top' command would do it, but I'm hitting a snag. The top command doesn't output any data at all. &lt;BR /&gt;
I'm looking for this data to output in a table format with the fields time,user,count.&lt;/P&gt;

&lt;P&gt;I attempted to use the following search query:&lt;/P&gt;

&lt;P&gt;host=&amp;lt; myhost &amp;gt; eventtype=&amp;lt; my event type &amp;gt; | timechart span=1h count by user useother=false&lt;/P&gt;

&lt;P&gt;Thank you!! &lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 21:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56384#M13808</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2013-06-05T21:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: event count, per user, per hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56385#M13809</link>
      <description>&lt;P&gt;So, what was the result of the query you attempted?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 21:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56385#M13809</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-06-05T21:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: event count, per user, per hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56386#M13810</link>
      <description>&lt;P&gt;It looks like I'm getting the latest 20 users, which are not the top offenders I am looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 21:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56386#M13810</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2013-06-05T21:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: event count, per user, per hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56387#M13811</link>
      <description>&lt;P&gt;try this...&lt;/P&gt;

&lt;P&gt;host=&amp;lt; myhost &amp;gt; eventtype=&amp;lt; my event type &amp;gt; | timechart span=1h limit=10 useother=f count by user&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 04:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56387#M13811</guid>
      <dc:creator>kml_uvce</dc:creator>
      <dc:date>2013-06-06T04:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: event count, per user, per hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56388#M13812</link>
      <description>&lt;P&gt;Almost!  The result set I get now is the ten (limit=10) most recent offenders. &lt;/P&gt;

&lt;P&gt;I thought the 'top' command was the way to go, but I can't seem to get the search to roll it's results to the top command and have it output the data.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 13:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56388#M13812</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2013-06-06T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: event count, per user, per hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56389#M13813</link>
      <description>&lt;P&gt;I think the issue is the output format of the table using time chart.   If you manually bucket I think you will get a better result.&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=&amp;lt; myhost &amp;gt; eventtype=&amp;lt; my event type &amp;gt; | bucket _time span=1h | stats count by _time,user | sort - count | head
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jun 2013 13:47:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56389#M13813</guid>
      <dc:creator>okrabbe_splunk</dc:creator>
      <dc:date>2013-06-06T13:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: event count, per user, per hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56390#M13814</link>
      <description>&lt;P&gt;bucketing is exactly what I was looking for as far as the count for the time span! Thank you! &lt;/P&gt;

&lt;P&gt;This gives the most recent offenders/instances, though I am looking for information on only the top ten offenders. &lt;/P&gt;

&lt;P&gt;It's almost like I would need to run a search first to find the top ten offenders, then break out each user into a '_time" bucket and show their stats per hour individually?  I'm guessing here &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56390#M13814</guid>
      <dc:creator>tmarlette</dc:creator>
      <dc:date>2013-06-06T14:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: event count, per user, per hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56391#M13815</link>
      <description>&lt;P&gt;Yeah you could do a subsearch and use that on the initial search.  Something like below but you may need to play with it a bit.&lt;/P&gt;

&lt;P&gt;host=&amp;lt; myhost &amp;gt; eventtype=&amp;lt; my event type &amp;gt; [ search host=&amp;lt; myhost &amp;gt; eventtype=&amp;lt; my event type &amp;gt; | top user | table user]  | bucket _time span=1h | stats count by _time,user | sort - count | head&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Storm/Storm/User/Useasubsearch"&gt;http://docs.splunk.com/Documentation/Storm/Storm/User/Useasubsearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 14:44:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/event-count-per-user-per-hour/m-p/56391#M13815</guid>
      <dc:creator>okrabbe_splunk</dc:creator>
      <dc:date>2013-06-06T14:44:20Z</dc:date>
    </item>
  </channel>
</rss>

