<?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 Check for event that has not changed for X days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484804#M135708</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;

&lt;P&gt;I'm struggling with a query. We want to search Windows Event logs for accounts whose passwords have not been changed (by admins) for more than 700 days. I have created a query that informs me of when a password was changed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=main host=*DC* EventCode=4724 | eval Modifier = mvindex(Account_Name, 0) | eval User_Name = mvindex(Account_Name, 1) | rename Group_Name AS Modified_Group | table _time Modifier User_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I do not know how to get Splunk to check for a password that has NOT been changed for over X days. Is this even possible?&lt;/P&gt;

&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 18:48:03 GMT</pubDate>
    <dc:creator>Branden</dc:creator>
    <dc:date>2019-11-13T18:48:03Z</dc:date>
    <item>
      <title>Check for event that has not changed for X days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484804#M135708</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;

&lt;P&gt;I'm struggling with a query. We want to search Windows Event logs for accounts whose passwords have not been changed (by admins) for more than 700 days. I have created a query that informs me of when a password was changed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=main host=*DC* EventCode=4724 | eval Modifier = mvindex(Account_Name, 0) | eval User_Name = mvindex(Account_Name, 1) | rename Group_Name AS Modified_Group | table _time Modifier User_Name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I do not know how to get Splunk to check for a password that has NOT been changed for over X days. Is this even possible?&lt;/P&gt;

&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 18:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484804#M135708</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2019-11-13T18:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Check for event that has not changed for X days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484805#M135709</link>
      <description>&lt;P&gt;Hi Branden,&lt;/P&gt;

&lt;P&gt;I think the answer is quite easy, but not what you expect:&lt;BR /&gt;
- Install the SA-ldapsearch (Splunk Supporting Add On for Active Directory) &lt;A href="https://splunkbase.splunk.com/app/1151/"&gt;https://splunkbase.splunk.com/app/1151/&lt;/A&gt;&lt;BR /&gt;
- do an LDAP-Search on your tree and look for (objectClass=shadowAccount) and the field shadowLastChange (date of last password change)&lt;/P&gt;

&lt;P&gt;Hope it helps&lt;BR /&gt;
Oliver&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 19:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484805#M135709</guid>
      <dc:creator>ololdach</dc:creator>
      <dc:date>2019-11-13T19:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Check for event that has not changed for X days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484806#M135710</link>
      <description>&lt;P&gt;Thank you for your response. We have an AD environment and a separate LDAP environment (running on Linux). Your solution would work for our LDAP logs, but for AD all I have to go by are the Windows Event Logs.  &lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 19:13:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484806#M135710</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2019-11-13T19:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check for event that has not changed for X days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484807#M135711</link>
      <description>&lt;P&gt;Hi Branden, the solution works fine with AD, provided you get a read-only AD user set up in your AD domain. If you can't get access, though, this page tells you the right messages to get into splunk and look for: &lt;A href="https://blogs.manageengine.com/active-directory/2018/08/23/monitoring-service-account-password-changes-active-directory.html"&gt;https://blogs.manageengine.com/active-directory/2018/08/23/monitoring-service-account-password-changes-active-directory.html&lt;/A&gt;&lt;BR /&gt;
Best&lt;BR /&gt;
Oliver&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 06:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484807#M135711</guid>
      <dc:creator>ololdach</dc:creator>
      <dc:date>2019-11-14T06:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Check for event that has not changed for X days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484808#M135712</link>
      <description>&lt;P&gt;You were absolutely right. I misunderstood what you were saying. &lt;BR /&gt;
I worked with one of our admins and we have the query working. You're right - it's quite an easy solution. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 17:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-for-event-that-has-not-changed-for-X-days/m-p/484808#M135712</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2019-11-15T17:08:14Z</dc:date>
    </item>
  </channel>
</rss>

