<?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 to retrieve current user in splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177424#M51014</link>
    <description>&lt;P&gt;Then you can use this:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/28633/current-user-in-search.html"&gt;http://answers.splunk.com/answers/28633/current-user-in-search.html&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; rest /services/authentication/current-context/context | fields + username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2015 11:45:50 GMT</pubDate>
    <dc:creator>gfuente</dc:creator>
    <dc:date>2015-04-30T11:45:50Z</dc:date>
    <item>
      <title>How to retrieve current user in splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177421#M51011</link>
      <description>&lt;P&gt;I want to retrieve a current user in splunk web by run a query. &lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 10:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177421#M51011</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2015-04-30T10:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve current user in splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177422#M51012</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;

&lt;P&gt;You can use this query to see logged users in splunk web:&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 |join type=left userName [| rest /services/authentication/users splunk_server=local 
 |fields title roles realname|rename title as userName|rename realname as Name]
 |rename userName as User |rename splunk_server as "Splunk Server"|rename timeAccessed as "Time Accessed"|rename roles as Role
 |table User,"Splunk Server",Name,Role
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177422#M51012</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2015-04-30T11:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve current user in splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177423#M51013</link>
      <description>&lt;P&gt;thanks for your time .&lt;BR /&gt;
How do i do to get only the current User.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177423#M51013</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2015-04-30T11:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve current user in splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177424#M51014</link>
      <description>&lt;P&gt;Then you can use this:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/28633/current-user-in-search.html"&gt;http://answers.splunk.com/answers/28633/current-user-in-search.html&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; rest /services/authentication/current-context/context | fields + username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-current-user-in-splunk/m-p/177424#M51014</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2015-04-30T11:45:50Z</dc:date>
    </item>
  </channel>
</rss>

