<?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 track a specific user login and logoff the past 30 days in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124325#M3799</link>
    <description>&lt;P&gt;@dfrankekcg, its not working for me. The user detail always populates with "-" rather than an actual user. Did you make any changes to the system to get this to work? &lt;/P&gt;</description>
    <pubDate>Sat, 29 Feb 2020 17:02:31 GMT</pubDate>
    <dc:creator>spammenot66</dc:creator>
    <dc:date>2020-02-29T17:02:31Z</dc:date>
    <item>
      <title>How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124315#M3789</link>
      <description>&lt;P&gt;Please excuse my lack of knowledge with Splunk but I need to track a user by login/logoff for the past 30 days.  I looked through some of the answers but can't seem to get this to work.  Appreciate your help!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 16:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124315#M3789</guid>
      <dc:creator>twinsound</dc:creator>
      <dc:date>2013-10-31T16:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124316#M3790</link>
      <description>&lt;P&gt;Try this (verified in splunk 6):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-30d index=_internal sourcetype=splunk_web_service user="*" action=login OR action=logoff | table user status action reason message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Replace user="*" with the username you care about&lt;/P&gt;

&lt;P&gt;Or could do something like this:&lt;/P&gt;

&lt;P&gt;earliest=-30d index=_internal sourcetype=splunk_web_service user="*"  | convert ctime(_time) as time | eval userevent=time.": ".action | stats values(userevent) as UserEvent by user&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124316#M3790</guid>
      <dc:creator>adylent</dc:creator>
      <dc:date>2020-09-28T15:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124317#M3791</link>
      <description>&lt;P&gt;When I paste the command with "johndoe" It doesn't find any record.  Should I perform a search from Splunk App for Active Directory? I believe by default, it is searching for johndoe logging into Splunk.&lt;/P&gt;

&lt;P&gt;earliest=-30d index=_internal sourcetype=splunk_web_service user="johndoe"  | convert ctime(_time) as time | eval userevent=time.": ".action | stats values(userevent) as UserEvent by user&lt;/P&gt;

&lt;P&gt;Appreciate your help!  I'll award you points &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124317#M3791</guid>
      <dc:creator>twinsound</dc:creator>
      <dc:date>2020-09-28T15:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124318#M3792</link>
      <description>&lt;P&gt;You may need to audit your user role and ensure that you have access to the _internal index  (I think by default most users are non-internal indexes).   &lt;/P&gt;

&lt;P&gt;Which version of splunk are you running?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 16:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124318#M3792</guid>
      <dc:creator>adylent</dc:creator>
      <dc:date>2013-10-31T16:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124319#M3793</link>
      <description>&lt;P&gt;Running version 5.0.4, build 172409&lt;/P&gt;

&lt;P&gt;I'm the admin in splunk and have domain admin rights&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 17:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124319#M3793</guid>
      <dc:creator>twinsound</dc:creator>
      <dc:date>2013-10-31T17:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124320#M3794</link>
      <description>&lt;P&gt;adylent: thanks for your excellent response but I'm trying to track specific users within Active Directory or Windows security logs to determine when a user logged in/out.  &lt;/P&gt;

&lt;P&gt;What you provided above was great information when someone logs into splunk, but trying to use a different syntax for searching within the security logs from the DC's.&lt;/P&gt;

&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2013 16:39:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124320#M3794</guid>
      <dc:creator>twinsound</dc:creator>
      <dc:date>2013-12-20T16:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124321#M3795</link>
      <description>&lt;P&gt;Not sure if this will be helpful. We can track the logon/logoff for a user in a windows machine. The data is stored in Event Log under Security. Splunk can monitor the same. EventCode=4624 is for LOGON and EventCode=4634 for LOGOFF. Once data in indexed, you can search Splunk.&lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" EventCode=4624 OR EventCode=4634 | table _time Account* Logon*&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2013 19:50:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124321#M3795</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-20T19:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124322#M3796</link>
      <description>&lt;P&gt;Thanks somesoni2: just figured that out as well.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2013 19:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124322#M3796</guid>
      <dc:creator>twinsound</dc:creator>
      <dc:date>2013-12-20T19:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124323#M3797</link>
      <description>&lt;P&gt;This worked for me:&lt;/P&gt;

&lt;P&gt;earliest=-30d index=_internal action=login OR action=logoff | eval length=len(user) | search length&amp;gt;1 | eval eventdate=strftime(_time,"%Y-%m-%d") | dedup eventdate, user| table eventdate, user&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124323#M3797</guid>
      <dc:creator>dfrankekcg</dc:creator>
      <dc:date>2020-09-29T09:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124324#M3798</link>
      <description>&lt;P&gt;Field value for &lt;STRONG&gt;action&lt;/STRONG&gt; is changed from &lt;STRONG&gt;logoff&lt;/STRONG&gt; to &lt;STRONG&gt;logout&lt;/STRONG&gt; now, use updated query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunk_web_service earliest=-30d  user="*" action=login OR action=logout | table user status action reason message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 06:11:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124324#M3798</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2018-02-01T06:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124325#M3799</link>
      <description>&lt;P&gt;@dfrankekcg, its not working for me. The user detail always populates with "-" rather than an actual user. Did you make any changes to the system to get this to work? &lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 17:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/124325#M3799</guid>
      <dc:creator>spammenot66</dc:creator>
      <dc:date>2020-02-29T17:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to track a specific user login and logoff the past 30 days</title>
      <link>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/558109#M12356</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunkd sourcetype works fine:
earliest=-30d index=_internal sourcetype=splunkd user="*" action=login OR action=logoff | table user status action reason message&lt;/LI-CODE&gt;&lt;P&gt;sourcetype=splunk_web_service --- not available nowadays. I think its removed or merged with splunkd.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 07:15:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-track-a-specific-user-login-and-logoff-the-past-30-days/m-p/558109#M12356</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2021-07-02T07:15:46Z</dc:date>
    </item>
  </channel>
</rss>

