<?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: Conccurent users using splunk web in Security</title>
    <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150064#M4572</link>
    <description>&lt;P&gt;ignore that last comment I figured it out - it needs to run in S.o.S app not default search &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2014 13:11:14 GMT</pubDate>
    <dc:creator>shobbit</dc:creator>
    <dc:date>2014-05-06T13:11:14Z</dc:date>
    <item>
      <title>Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150057#M4565</link>
      <description>&lt;P&gt;Hi - fairly new to Splunk an have a specific report my customer wants to monitor/report on.  They want to understand how many people are using Splunk over time. This will also us to size Splunk web deployment in the future.  I have the S.o.S app installed but none of the dashboards are quite right from S.o.S or the default Splunk activity dashboards to give me user concurrency.  &lt;/P&gt;

&lt;P&gt;I am trying to construct something that shows number of concurrent users that have/are logged into splunk web. i,e.&lt;/P&gt;

&lt;P&gt;8AM 1user&lt;/P&gt;

&lt;P&gt;9am 3users&lt;/P&gt;

&lt;P&gt;10am 2users&lt;BR /&gt;
etc&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 09:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150057#M4565</guid>
      <dc:creator>shobbit</dc:creator>
      <dc:date>2014-05-02T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150058#M4566</link>
      <description>&lt;P&gt;Hi shobbit,&lt;/P&gt;

&lt;P&gt;it depends how Splunk handles user authentication. &lt;/P&gt;

&lt;P&gt;If you're using LDAP based users and SSO for authentication, user logins are not handled by Splunk and therefore you will not find any of the SSO / LDAP user logins in the audit.log.&lt;/P&gt;

&lt;P&gt;But you can use the REST end point /services/authenticaion/httpauth-tokens on your search head like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/httpauth-tokens splunk_server=local  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and you will get a list of users which were or still are connect over SSO / LDAP.&lt;/P&gt;

&lt;P&gt;Setting this up as saved search with summary indexing will give you the abillity to gether historical events as well.&lt;/P&gt;

&lt;P&gt;If you're using Splunk internal user authentication, you will find the needed information inside Splunk's &lt;CODE&gt;audit.log&lt;/CODE&gt;. You can search for it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="login attempt" | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps...&lt;/P&gt;

&lt;P&gt;cheers,&lt;BR /&gt;
MuS&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 10:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150058#M4566</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-05-02T10:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150059#M4567</link>
      <description>&lt;P&gt;You might get away with a simple search something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunk_web_access user=* NOT user="-" | timechart span=1h dc(user)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 May 2014 16:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150059#M4567</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-02T16:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150060#M4568</link>
      <description>&lt;P&gt;You've hit on a touchy problem with Splunk: figuring out how busy the infrastructure is at any point in time.  There are two things to look at.&lt;/P&gt;

&lt;P&gt;1) How many users are currently using Splunk.&lt;/P&gt;

&lt;P&gt;This is interesting, but only goes so far.  Am I "currently using Splunk" if I have a static dashboard on my screen that has finished loading 10 minutes ago, and I'm either staring at it, or have my head turned talking to someone else?   martin_mueller's search in his comment is spot on, and will help you answer this question.  1 hour may be too long of a time frame, as I have found 1m or 5m is more useful for determining how busy Splunk is.&lt;/P&gt;

&lt;P&gt;2) How many searches are currently being run.&lt;/P&gt;

&lt;P&gt;This is a little harder, because searches come and go, sometimes fairly quickly.  A couple of ways to see this info.  First, concurrent searches by user.  Who's exercising Splunk the most?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*metrics.log group="search_concurrency" NOT "system total"
| timechart span=1m sum(active_hist_searches) as concurrent_searches by user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Interesting patterns emerge per person/group and time of day.&lt;/P&gt;

&lt;P&gt;Second, is this ad-hoc or scheduled?  Too many concurrent scheduled searches can really bring Splunk to its knees.  A lot of scheduled searches may be okay, if they are very short duration (like populating summary indexes or report acceleration).  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`set_sos_index` sourcetype=ps 
 | multikv
 | `get_splunk_process_type`
 | search type="searches"
 | rex field=ARGS "_--user=(?&amp;lt;search_user&amp;gt;.*?)_--"
 | rex field=ARGS "--id=(?&amp;lt;sid&amp;gt;.*?)_--"
 | rex field=sid "remote_(?&amp;lt;search_head&amp;gt;[^_]*?)_"
 | eval is_remote=if(like(sid,"%remote%"),"remote","local")
 | eval is_scheduled=if(like(sid,"%scheduler_%"),"scheduled","ad-hoc")
 | eval is_realtime=if(like(sid,"%rt_%"),"real-time","historical")
 | eval  is_subsearch=if(like(sid,"%subsearch_%"),"subsearch","generic")
 | eval search_type=is_remote.", ".is_scheduled.", ".is_realtime
 | timechart span=1m dc(sid) AS "Search count" by is_scheduled
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props go out to hexx (SoS guru) for these, and hopefully they (or something like it) will show up in SoS in the near future.&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2014 17:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150060#M4568</guid>
      <dc:creator>davidpaper</dc:creator>
      <dc:date>2014-05-04T17:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150061#M4569</link>
      <description>&lt;P&gt;Hi davidpaper, &lt;/P&gt;

&lt;P&gt;You've hit the nail on the head. However unfortunately I don't actually care about busy, I have enough monitoring elsewhere to figure out busy and cause thereof, just concurrency at this point. &lt;EM&gt;sigh&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;It's an interesting conundrum because one of the sizing factors Splunk recommend is 1 user per core (ideally 2) hence concurrency would seem to be a useful measure in sizing...&lt;/P&gt;

&lt;P&gt;thanks for pointers so far everyone&lt;BR /&gt;
PS - As MuS rightly surmised. I am using LDAP, forgot to mention that bit!&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 08:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150061#M4569</guid>
      <dc:creator>shobbit</dc:creator>
      <dc:date>2014-05-06T08:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150062#M4570</link>
      <description>&lt;P&gt;That's a splunk docs typo, in my opinion.  "1 active user per core (idealy) two".  If a user isn't actively searching, then they shouldn't count! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 12:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150062#M4570</guid>
      <dc:creator>davidpaper</dc:creator>
      <dc:date>2014-05-06T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150063#M4571</link>
      <description>&lt;P&gt;BTW david is your large sos search supposed to work as written?  my instance doesn't seem to like the &lt;CODE&gt;set_sos_index&lt;/CODE&gt;or &lt;CODE&gt;get_splunk_process_type&lt;/CODE&gt; bits?  PS I've not worked with searches of this complexity yet so excuse my ignorance&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 13:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150063#M4571</guid>
      <dc:creator>shobbit</dc:creator>
      <dc:date>2014-05-06T13:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150064#M4572</link>
      <description>&lt;P&gt;ignore that last comment I figured it out - it needs to run in S.o.S app not default search &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 13:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150064#M4572</guid>
      <dc:creator>shobbit</dc:creator>
      <dc:date>2014-05-06T13:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conccurent users using splunk web</title>
      <link>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150065#M4573</link>
      <description>&lt;P&gt;As a different approach, you could run this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| pivot internal_audit_logs searches sum(total_run_time) AS run_time SPLITROW _time PERIOD hour SORT 0 _time | eval avg_cpus = run_time / 3600 | timechart span=1d max(avg_cpus) as max_cpus_per_hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will calculate the total seconds spent on searching for every hour, convert that into average number of searches running concurrently during that hour, and use the worst hour each day for charting.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 17:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Conccurent-users-using-splunk-web/m-p/150065#M4573</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-06T17:05:14Z</dc:date>
    </item>
  </channel>
</rss>

