<?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: Active Directory auditing in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Active-Directory-auditing-What-s-the-best-way-to-get-it-done/m-p/653305#M225779</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258946"&gt;@Niro&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the first step i identify the Windows EventCodes you wan, here you can find all the Windows EventCodes:&amp;nbsp;&lt;A href="https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx" target="_blank"&gt;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So if you ant an lert when a Group is created, you have to run a search like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=wineventlog EventCode=4727&lt;/LI-CODE&gt;&lt;P&gt;and then display the fields you want.&lt;/P&gt;&lt;P&gt;As usual the most important job in Splunk is outside Splunk itself: you have to know what to search and what to display, how to do it is a secondary and easier thing.&lt;/P&gt;&lt;P&gt;So if you want to know when a User is added to a group you have to search for the EventCode 4728 and it's removed EventCode 4729.&lt;/P&gt;&lt;P&gt;Now you can create a search like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=wineventlog EventCode IN (4728,4729)
| stats 
   values(eval(if(EventCode=4728),host,"")) AS new_host
   values(eval(if(EventCode=4729),host,"")) AS old_host
   BY user&lt;/LI-CODE&gt;&lt;P&gt;Obviously you can customize your search as you like.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sat, 05 Aug 2023 08:52:55 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-08-05T08:52:55Z</dc:date>
    <item>
      <title>Active Directory auditing: What's the best way to get it done?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-Directory-auditing-What-s-the-best-way-to-get-it-done/m-p/653301#M225776</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm trying to figure out the best way to report/alert on active directory change events. I have admon/event forwarding set up on our DCs (admon on just one).&lt;/P&gt;
&lt;P&gt;I need to be able to alert on group changes - which is relatively easy to set up alerts for However I also need to be able to alert when someone moves one of a specific list of users from one OU to another. What I make a change like that, I can see the event in splunk from admon, but it just lists the objects properties. I can figure out what changed by looking previous event for the object and compare a field with streamstats - but that's assuming I know what to compare, and I won't always know what changed.&lt;/P&gt;
&lt;P&gt;So what's the best way to get this done? How can I alert that "x admin moved y user from OU-A to OU-B"?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 19:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-Directory-auditing-What-s-the-best-way-to-get-it-done/m-p/653301#M225776</guid>
      <dc:creator>Niro</dc:creator>
      <dc:date>2023-08-07T19:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Active Directory auditing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-Directory-auditing-What-s-the-best-way-to-get-it-done/m-p/653305#M225779</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258946"&gt;@Niro&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the first step i identify the Windows EventCodes you wan, here you can find all the Windows EventCodes:&amp;nbsp;&lt;A href="https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx" target="_blank"&gt;https://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So if you ant an lert when a Group is created, you have to run a search like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=wineventlog EventCode=4727&lt;/LI-CODE&gt;&lt;P&gt;and then display the fields you want.&lt;/P&gt;&lt;P&gt;As usual the most important job in Splunk is outside Splunk itself: you have to know what to search and what to display, how to do it is a secondary and easier thing.&lt;/P&gt;&lt;P&gt;So if you want to know when a User is added to a group you have to search for the EventCode 4728 and it's removed EventCode 4729.&lt;/P&gt;&lt;P&gt;Now you can create a search like the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=wineventlog EventCode IN (4728,4729)
| stats 
   values(eval(if(EventCode=4728),host,"")) AS new_host
   values(eval(if(EventCode=4729),host,"")) AS old_host
   BY user&lt;/LI-CODE&gt;&lt;P&gt;Obviously you can customize your search as you like.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2023 08:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-Directory-auditing-What-s-the-best-way-to-get-it-done/m-p/653305#M225779</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-05T08:52:55Z</dc:date>
    </item>
  </channel>
</rss>

