<?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: Trigger Password Reset alarm by Admin by Distinct count of targets in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657250#M227011</link>
    <description>&lt;P&gt;If the problem is solved, please select the answer and close. &amp;nbsp;Karma for all that helped advance the solution is also appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 01:24:12 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-09-12T01:24:12Z</dc:date>
    <item>
      <title>How to Trigger Password Reset alarm by Admin by Distinct count of targets?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/656831#M226861</link>
      <description>&lt;P&gt;I want to essentially trigger an alarm if a user changes the password of multiple distinct user accounts within a given period of time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to start with the search below, which provides me a count of distinct user account change grouped by the source user.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to apply a threshold logic to it, it doesn't appear to work.&lt;BR /&gt;&lt;BR /&gt;source="WinEventLog:Security" (EventCode=628 OR EventCode=627 OR EventCode=4723 OR EventCode=4724)&lt;BR /&gt;| stats count(Target_Account_Name) by Subject_Account_Name&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/656831#M226861</guid>
      <dc:creator>mdicenzo</dc:creator>
      <dc:date>2023-09-11T16:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Password Reset alarm by Admin by Distinct count of targets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/656883#M226881</link>
      <description>&lt;P&gt;You need to tell volunteers what "doesn't work" means. &amp;nbsp;This is a phrase to be avoided in the best of scenarios.&lt;/P&gt;&lt;P&gt;This said, if Target_Account_Name and Subject_Account_Name are both available in raw events, maybe you are looking for distinct_count (aka &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Aggregatefunctions#distinct_count.28.26lt.3Bvalue.26gt.3B.29_or_dc.28.26lt.3Bvalue.26gt.3B.29" target="_blank" rel="noopener"&gt;dc&lt;/A&gt;) instead of count? Something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="WinEventLog:Security" EventCode IN (628, 627, 4723, 4724)
| stats dc(Target_Account_Name) by Subject_Account_Name&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 20:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/656883#M226881</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-09-06T20:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Password Reset alarm by Admin by Distinct count of targets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657066#M226954</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feedback. I will be more specific next time. I wasn’t aware of the dc (distinct count) option in search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example you provided, how would I alert in which the dc has a count of over 5?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 14:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657066#M226954</guid>
      <dc:creator>mdicenzo</dc:creator>
      <dc:date>2023-09-08T14:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Password Reset alarm by Admin by Distinct count of targets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657075#M226955</link>
      <description>&lt;P&gt;1. i'd check the TA windows for eventtype. There might be one already defined covering your event codes and your search would be more concise.&lt;/P&gt;&lt;P&gt;2. What do you mean by "does not work"?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 17:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657075#M226955</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-09-08T17:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Password Reset alarm by Admin by Distinct count of targets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657096#M226964</link>
      <description>&lt;P&gt;dc outputs a number. &amp;nbsp;Just use it in a logical expression, like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="WinEventLog:Security" EventCode IN (628, 627, 4723, 4724)
| stats values(Target_Account_Name) dc(Target_Account_Name) by Subject_Account_Name
| where 'dc(Target_Account_Name)' &amp;gt; 5&lt;/LI-CODE&gt;&lt;P&gt;Or more customarily,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="WinEventLog:Security" EventCode IN (628, 627, 4723, 4724)
| stats values(Target_Account_Name) as Target_Account_Name dc(Target_Account_Name) as Target_Account_Count by Subject_Account_Name
| where Target_Account_Count &amp;gt; 5​&lt;/LI-CODE&gt;&lt;P&gt;Alternatively, you do not need to use dc. &amp;nbsp;You can perform &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/MultivalueEvalFunctions#mvcount.28.26lt.3Bmv.26gt.3B.29" target="_blank" rel="noopener"&gt;mvcount&lt;/A&gt; on aggregate Target_Account_Name to give more concise output.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="WinEventLog:Security" EventCode IN (628, 627, 4723, 4724)
| stats values(Target_Account_Name) as Target_Account_Name by Subject_Account_Name
| where mvcount(Target_Account_Name) &amp;gt; 5​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 22:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657096#M226964</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-09-08T22:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Password Reset alarm by Admin by Distinct count of targets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657212#M226996</link>
      <description>&lt;P&gt;Thanks for the feedback. This worked for me!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 14:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657212#M226996</guid>
      <dc:creator>mdicenzo</dc:creator>
      <dc:date>2023-09-11T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Password Reset alarm by Admin by Distinct count of targets</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657250#M227011</link>
      <description>&lt;P&gt;If the problem is solved, please select the answer and close. &amp;nbsp;Karma for all that helped advance the solution is also appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 01:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Trigger-Password-Reset-alarm-by-Admin-by-Distinct-count/m-p/657250#M227011</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-09-12T01:24:12Z</dc:date>
    </item>
  </channel>
</rss>

