<?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 you find the number of users logged in at any specific hour? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447687#M9672</link>
    <description>&lt;P&gt;something like &lt;CODE&gt;&amp;lt;your index&amp;gt;|  rex field=_raw "\s\[BreakssFogFilter](?&amp;lt;user&amp;gt;.*?)P" |timechart span=1h count by user&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 14:01:49 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2018-09-10T14:01:49Z</dc:date>
    <item>
      <title>How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447686#M9671</link>
      <description>&lt;P&gt;Here are two sample events&lt;/P&gt;

&lt;P&gt;Event 1 - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-09-10 11:17:57,982 INFO [http-nio-127.0.0.1-8085-exec-130] [BreakssFogFilter] BF27462 GET &lt;A href="https://rambo.ixngames.com/start.action" target="test_blank"&gt;https://rambo.ixngames.com/start.action&lt;/A&gt; 7485905kb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event 2 - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-09-10 11:10:55,644 INFO [http-nio-127.0.0.1-8085-exec-51] [BreakssFogFilter] ZD07220 POST &lt;A href="https://rambo.ixngames.com/userLogout.action" target="test_blank"&gt;https://rambo.ixngames.com/userLogout.action&lt;/A&gt; 1615031kb
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event 1 indicates that a user just logged in. Event 2 indicates a user logged out. Around 30 similar events get created with slightly different format events when a users logs in or logs out. It also specifies the user name in the events.&lt;/P&gt;

&lt;P&gt;We are trying to figure out How many users(distinct) are logged in to the server at any specific hour by analyzing the events from the above mentioned event formats.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 13:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447686#M9671</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-09-10T13:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447687#M9672</link>
      <description>&lt;P&gt;something like &lt;CODE&gt;&amp;lt;your index&amp;gt;|  rex field=_raw "\s\[BreakssFogFilter](?&amp;lt;user&amp;gt;.*?)P" |timechart span=1h count by user&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447687#M9672</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2018-09-10T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447688#M9673</link>
      <description>&lt;P&gt;Please check this rex query... as i dont have logs, &lt;CODE&gt;stats dc&lt;/CODE&gt; wont work on this SPL.. you can test it on your splunk.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | makeresults 
    | eval _raw = "2018-09-10 09:07:40,502 INFO [http-nio-116.0.1.1-8082-exec-212] [BreakssFogFilter] UG32791 POST &lt;A href="https://rambo.ixngames.com/userLogout.action" target="test_blank"&gt;https://rambo.ixngames.com/userLogout.action&lt;/A&gt; 5928653kb"
    | rex field=_raw "(?&amp;lt;UserName&amp;gt;\w+) POST"
    | table UserName _raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5722i03F0BC33B273DECE/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447688#M9673</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2018-09-10T14:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447689#M9674</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "\w+\]\s(?&amp;lt;user_name&amp;gt;\w{7})\s" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447689#M9674</guid>
      <dc:creator>imthesplunker</dc:creator>
      <dc:date>2018-09-10T14:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447690#M9675</link>
      <description>&lt;P&gt;hey @zacksoft try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_search&amp;gt;| rex field=_raw ".*\]\s(?&amp;lt;user&amp;gt;\w+)\s\w+" | timechart span=1h dc(user) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447690#M9675</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-09-10T14:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447691#M9676</link>
      <description>&lt;P&gt;@mayurr98&lt;BR /&gt;&lt;BR /&gt;
It executed for five minutes and the visualization was rendering well then all of a sudden it stopped and gave me an error &lt;BR /&gt;
&lt;STRONG&gt;Streamed search execute failed because: Error in 'rex' command: regex=".*]\s(?\w+)\s\w+" has exceeded configured match_limit, consider raising the value in limits.conf&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447691#M9676</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-09-10T14:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447692#M9677</link>
      <description>&lt;P&gt;I might have to change the rex. I have written rex based on just 1 sample event given. &lt;BR /&gt;
ok tell me do you have &lt;CODE&gt;[BreakssFogFilter]&lt;/CODE&gt; common in every sampling event then try this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;your_search&amp;gt;| rex field=_raw "\[BreakssFogFilter\]\s(?&amp;lt;user&amp;gt;\w+)" | timechart span=1h dc(user) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_search&amp;gt;| rex field=_raw "\[\w+\]\s(?&amp;lt;user&amp;gt;\w+)\s\w{3,6}" | timechart span=1h dc(user)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run it for a shorter period and see if it is giving you correct results then for longer one.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447692#M9677</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-09-10T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447693#M9678</link>
      <description>&lt;P&gt;@mayurr98&lt;BR /&gt;
When I run for only 'last 4 hours' it works. &lt;/P&gt;

&lt;P&gt;Here are two sample events&lt;/P&gt;

&lt;P&gt;Event 1 - &lt;BR /&gt;
2018-09-10 11:17:57,982 INFO [http-nio-127.0.0.1-8085-exec-130] [BreakssFogFilter] BF27462 GET &lt;A href="https://rambo.ixngames.com/start.action"&gt;https://rambo.ixngames.com/start.action&lt;/A&gt; 7485905kb&lt;/P&gt;

&lt;P&gt;Event 2 - &lt;BR /&gt;
2018-09-10 11:10:55,644 INFO [http-nio-127.0.0.1-8085-exec-51] [BreakssFogFilter] ZD07220 POST &lt;A href="https://rambo.ixngames.com/userLogout.action"&gt;https://rambo.ixngames.com/userLogout.action&lt;/A&gt; 1615031kb&lt;/P&gt;

&lt;P&gt;Event 1 indicates that a user just logged in, , Event 2 indicates user logged out.  Around 30 similar events gets created when a users logs in or logs out specifying the user name in the events.&lt;/P&gt;

&lt;P&gt;We are trying to figure out How many users(distinct) are logged in to the server at any specific hour.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447693#M9678</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-09-10T15:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447694#M9679</link>
      <description>&lt;P&gt;then you can write something like this in your base search to filter only logged in events.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; "https://rambo.ixngames.com/start.action" | rex field=_raw "\[BreakssFogFilter\]\s(?&amp;lt;user&amp;gt;\w+)" | timechart span=1h dc(user) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this solves your problem. accept the answer to close this question.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:01:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447694#M9679</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-09-10T16:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447695#M9680</link>
      <description>&lt;P&gt;@inventsekar&lt;BR /&gt;&lt;BR /&gt;
Could you help parse the user name from this event, the user name being gz71606.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-09-10 11:24:33,555 INFO [http-nio-124.0.0.1-8082-exec-155] [MyfaultAuthenticator] login : 'gz71606' could not be authenticated with the given password
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447695#M9680</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-09-10T16:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447696#M9681</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "\slogin\s\:\s\'(?&amp;lt;user&amp;gt;\w+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447696#M9681</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-09-10T16:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447697#M9682</link>
      <description>&lt;P&gt;@mayurr98&lt;BR /&gt;
This is perfect.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447697#M9682</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-09-10T16:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you find the number of users logged in at any specific hour?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447698#M9683</link>
      <description>&lt;P&gt;@mayurr98&lt;BR /&gt;&lt;BR /&gt;
You Sir, are a genius !&lt;BR /&gt;
Accepting your Answer.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 16:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-find-the-number-of-users-logged-in-at-any-specific/m-p/447698#M9683</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-09-10T16:30:11Z</dc:date>
    </item>
  </channel>
</rss>

