<?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: Find Current logged in users in Splunk 6, query works for 5.x in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166226#M33710</link>
    <description>&lt;P&gt;To find the user logged into Splunk , here are you searches you can use&lt;/P&gt;

&lt;P&gt;| rest /services/authentication/current-context splunk_server=local|table username&lt;/P&gt;

&lt;P&gt;or&lt;BR /&gt;
you could also check the auth tokens&lt;BR /&gt;
| rest /services/authentication/httpauth-tokens splunk_server=local |table userName|stats dc(userName) by userName&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2015 01:29:10 GMT</pubDate>
    <dc:creator>sat94541</dc:creator>
    <dc:date>2015-03-05T01:29:10Z</dc:date>
    <item>
      <title>Find Current logged in users in Splunk 6, query works for 5.x</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166221#M33705</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have been using below query to get the list of users currently logged into my Splunk Instance.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/authentication/httpauth-tokens | search (NOT userName="splunk-system-user") searchId="" | table userName splunk_server timeAccessed 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I tried the same thing in Splunk 6, I am getting 0 rows. It seems for all the logged in users, the userName field is "splunk-system-user", hence no rows.(I used this clause in Splunk 5.X to exclude schedule search/splunk system accounts.&lt;/P&gt;

&lt;P&gt;Have anyone done similar query to get list of current users in Splunk 6.&lt;/P&gt;

&lt;P&gt;Thanks in advanced.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 14:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166221#M33705</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-04T14:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find Current logged in users in Splunk 6, query works for 5.x</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166222#M33706</link>
      <description>&lt;P&gt;I ran this on my splunk 6.0 instance and it worked.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 15:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166222#M33706</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2013-12-04T15:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find Current logged in users in Splunk 6, query works for 5.x</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166223#M33707</link>
      <description>&lt;P&gt;What did it showed under uswrName field? Did it show all the users or just splunk-system-user? For me its showing all values as splunk-sys&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2013 16:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166223#M33707</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-04T16:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find Current logged in users in Splunk 6, query works for 5.x</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166224#M33708</link>
      <description>&lt;P&gt;I ran this as well and it worked. I got userName-&amp;gt;admin , splunk_server-&amp;gt;192.168.2.11, timeAccessed-&amp;gt; yada yada.. Im on Splunk 6.0 Build 174933.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 18:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166224#M33708</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2013-12-12T18:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find Current logged in users in Splunk 6, query works for 5.x</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166225#M33709</link>
      <description>&lt;P&gt;Not sure what was the issue. I just reinstalled Splunk and its working fine now. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 20:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166225#M33709</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-12T20:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find Current logged in users in Splunk 6, query works for 5.x</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166226#M33710</link>
      <description>&lt;P&gt;To find the user logged into Splunk , here are you searches you can use&lt;/P&gt;

&lt;P&gt;| rest /services/authentication/current-context splunk_server=local|table username&lt;/P&gt;

&lt;P&gt;or&lt;BR /&gt;
you could also check the auth tokens&lt;BR /&gt;
| rest /services/authentication/httpauth-tokens splunk_server=local |table userName|stats dc(userName) by userName&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 01:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166226#M33710</guid>
      <dc:creator>sat94541</dc:creator>
      <dc:date>2015-03-05T01:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find Current logged in users in Splunk 6, query works for 5.x</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166227#M33711</link>
      <description>&lt;P&gt;First query doesn't work..&lt;/P&gt;

&lt;P&gt;This query works.. but it's not live, had someone log off actualy log off and still showed up, so not real time.&lt;BR /&gt;
| rest /services/authentication/httpauth-tokens splunk_server=local |table userName|stats dc(userName) by username&lt;/P&gt;

&lt;P&gt;Anyone have a query that actually works in real time?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2015 12:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-Current-logged-in-users-in-Splunk-6-query-works-for-5-x/m-p/166227#M33711</guid>
      <dc:creator>mendesjo</dc:creator>
      <dc:date>2015-08-24T12:45:28Z</dc:date>
    </item>
  </channel>
</rss>

