<?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: Search for Splunk logon and role info in Security</title>
    <link>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176614#M14756</link>
    <description>&lt;P&gt;It didn't work for me either but got me down the right path. Unless I was doing something wrong, I had to rename user to title to join it to the rest data.  I also added the timestamp and limited it to the role I'm interested in. The results look accurate.  Using Splunk 6 by the way (didn't mention it earlier)&lt;/P&gt;

&lt;P&gt;index=_audit action="login attempt" | eval last=max(timestamp) | dedup user | rename user as title | join title [| rest /services/authentication/users] | search roles=&lt;EM&gt;cerner&lt;/EM&gt; | table title roles last | sort title&lt;/P&gt;

&lt;P&gt;Thanks for your help!!&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2013 19:58:52 GMT</pubDate>
    <dc:creator>maciep</dc:creator>
    <dc:date>2013-12-12T19:58:52Z</dc:date>
    <item>
      <title>Search for Splunk logon and role info</title>
      <link>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176610#M14752</link>
      <description>&lt;P&gt;Is there anyway to list users who have logged into Splunk along with the Splunk roles they are mapped to?  I can get the first part with the search below, but I don't know how to tie their roles to the results.&lt;/P&gt;

&lt;P&gt;index=_audit action="login attempt" | dedup user | sort user | table user&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 15:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176610#M14752</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2013-12-12T15:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Splunk logon and role info</title>
      <link>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176611#M14753</link>
      <description>&lt;P&gt;Try this ... index=_audit action="login attempt" | dedup user | join [| rest /services/authentication/users  ] | table user roles&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176611#M14753</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2013-12-12T19:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Splunk logon and role info</title>
      <link>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176612#M14754</link>
      <description>&lt;P&gt;This is super clever, but it doesn't work for me- I correctly get a list of logged-in users, but with the roles all incorrectly as 'user'.  I modified your search slightly and it seems to work for me-&lt;/P&gt;

&lt;P&gt;index=_audit action="login attempt" | dedup user | join user [| rest /services/authentication/users | rename title as user  ] | table user, roles&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176612#M14754</guid>
      <dc:creator>zenmoto</dc:creator>
      <dc:date>2013-12-12T19:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Splunk logon and role info</title>
      <link>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176613#M14755</link>
      <description>&lt;P&gt;Glad you found it useful!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:37:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176613#M14755</guid>
      <dc:creator>rroberts</dc:creator>
      <dc:date>2013-12-12T19:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search for Splunk logon and role info</title>
      <link>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176614#M14756</link>
      <description>&lt;P&gt;It didn't work for me either but got me down the right path. Unless I was doing something wrong, I had to rename user to title to join it to the rest data.  I also added the timestamp and limited it to the role I'm interested in. The results look accurate.  Using Splunk 6 by the way (didn't mention it earlier)&lt;/P&gt;

&lt;P&gt;index=_audit action="login attempt" | eval last=max(timestamp) | dedup user | rename user as title | join title [| rest /services/authentication/users] | search roles=&lt;EM&gt;cerner&lt;/EM&gt; | table title roles last | sort title&lt;/P&gt;

&lt;P&gt;Thanks for your help!!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 19:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Search-for-Splunk-logon-and-role-info/m-p/176614#M14756</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2013-12-12T19:58:52Z</dc:date>
    </item>
  </channel>
</rss>

