<?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: When Was The User Account Created in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281532#M190561</link>
    <description>&lt;P&gt;Hi, for those of you who may be interested, I think I may have found a solution to this using the query below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=edit_user operation=create
|rename object as user
|eval timestamp=strptime(timestamp, "%m-%d-%Y %H:%M:%S.%3N") 
|convert timeformat="%d/%b/%Y" ctime(timestamp)
|table user timestamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2016 13:00:35 GMT</pubDate>
    <dc:creator>IRHM73</dc:creator>
    <dc:date>2016-02-16T13:00:35Z</dc:date>
    <item>
      <title>When Was The User Account Created</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281529#M190558</link>
      <description>&lt;P&gt;Hi, I wonder whether someone may be able to help me please.&lt;/P&gt;

&lt;P&gt;I'm using the query below to list the current user accounts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/authentication/users splunk_server=local 
 |fields realname
 |rename realname as user
 |table user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could someone tell me please is there a way to determine when the account was created.&lt;/P&gt;

&lt;P&gt;I have tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/authentication/users splunk_server=local 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But there is no such field that I can see, only when the account was last updated.&lt;/P&gt;

&lt;P&gt;I just wonder whether someone may be able to point me in the right direction as to where I may find this information.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 12:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281529#M190558</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2016-02-15T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: When Was The User Account Created</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281530#M190559</link>
      <description>&lt;P&gt;I don't think this info is available. If you have a look at your .conf and according .meta files, you can see that this data is not recorded, only last modtime. I doubt the rest endpoint looks any place other than there.&lt;/P&gt;

&lt;P&gt;You could search the index &lt;CODE&gt;_audit&lt;/CODE&gt; for the earliest occurence of user names.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 13:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281530#M190559</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2016-02-15T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: When Was The User Account Created</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281531#M190560</link>
      <description>&lt;P&gt;Hi @jeffland, that's a shame, but thank you for taking the time to come back to me with this.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 14:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281531#M190560</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2016-02-15T14:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: When Was The User Account Created</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281532#M190561</link>
      <description>&lt;P&gt;Hi, for those of you who may be interested, I think I may have found a solution to this using the query below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=edit_user operation=create
|rename object as user
|eval timestamp=strptime(timestamp, "%m-%d-%Y %H:%M:%S.%3N") 
|convert timeformat="%d/%b/%Y" ctime(timestamp)
|table user timestamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281532#M190561</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2016-02-16T13:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: When Was The User Account Created</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281533#M190562</link>
      <description>&lt;P&gt;Great ! Thank you !&lt;/P&gt;

&lt;P&gt;I modified this query to get the real names :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action=edit_user operation=create
| join user type=left [| rest /services/authentication/users splunk_server=local | fields realname, title | rename realname as user_name, title as user]
| join object type=left [| rest /services/authentication/users splunk_server=local | fields realname, title | rename realname as edited_user_name, title as object]
| sort - timestamp
| eval timestamp=strptime(timestamp, "%m-%d-%Y %H:%M:%S.%3N") 
| convert timeformat="%d/%m/%Y %H:%M:%S.%3N" ctime(timestamp)
| rename user as user_id, object as edited_user_id
| table user_id user_name edited_user_id edited_user_name timestamp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Sep 2017 13:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-Was-The-User-Account-Created/m-p/281533#M190562</guid>
      <dc:creator>Julian_Gudiel_S</dc:creator>
      <dc:date>2017-09-19T13:17:40Z</dc:date>
    </item>
  </channel>
</rss>

