<?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 do you edit a correlation rule in a datamodel in Splunk Enterprise Security? in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376645#M3773</link>
    <description>&lt;P&gt;Depending on the versions of the CIM and Windows TA, this base search might work for you:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Change_Analysis"."Account_Management" | where result_id="4726" | where tag="delete"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 Nov 2018 22:39:54 GMT</pubDate>
    <dc:creator>dherrald_splunk</dc:creator>
    <dc:date>2018-11-05T22:39:54Z</dc:date>
    <item>
      <title>How do you edit a correlation rule in a datamodel in Splunk Enterprise Security?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376642#M3770</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Our correlation search for "account deleted" in Splunk is firing for any type of machine deletion detected on our domain controllers. &lt;/P&gt;

&lt;P&gt;Here is our correlation search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Change_Analysis"."Account_Management" | where 'tag'="delete" | stats max(_time) as "lastTime",latest(_raw) as "orig_raw",values(result) as "signature",values(src) as "src",values(dest) as "dest",count by "src_user","user" | where 'count'&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This rule fires for machine deletions such as when our system engineers remove machines after testing. We don't want to see this activity in incident review. We only want to know when someone has removed a user account.&lt;/P&gt;

&lt;P&gt;Doing some digging, I can see that there are specific event codes for different types of deletions in wineventlog. For a user account deletion, the eventcode is 4726, but when a machine account is deleted, the eventcode is 4743. So, I made a copy of our correlation rule and added the 4726 event code into the rule like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Change_Analysis"."Account_Management" | where EventCode=4726 | where 'tag'="delete" | stats max(_time) as "lastTime",latest(_raw) as "orig_raw",values(result) as "signature",values(src) as "src",values(dest) as "dest",count by "src_user","user" | where 'count'&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is not working. I tested this search this morning after seeing a user account getting removed. And when I run this version of the search, I get no results. &lt;/P&gt;

&lt;P&gt;Am I putting the 'where EventCode=4726' portion in the wrong part of the search string? Will this not work within a data model search?&lt;/P&gt;

&lt;P&gt;Thank You,&lt;/P&gt;

&lt;P&gt;Tyler Dygert&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376642#M3770</guid>
      <dc:creator>Tylerdygert</dc:creator>
      <dc:date>2018-11-05T15:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you edit a correlation rule in a datamodel in Splunk Enterprise Security?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376643#M3771</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Change_Analysis"."Account_Management" | search EventCode=4726 tag=delete 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should take care of it.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 20:16:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376643#M3771</guid>
      <dc:creator>miwade</dc:creator>
      <dc:date>2018-11-05T20:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you edit a correlation rule in a datamodel in Splunk Enterprise Security?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376644#M3772</link>
      <description>&lt;P&gt;This does not work. When I run this for a time frame when we had one of these events we get no results&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 21:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376644#M3772</guid>
      <dc:creator>Tylerdygert</dc:creator>
      <dc:date>2018-11-05T21:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you edit a correlation rule in a datamodel in Splunk Enterprise Security?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376645#M3773</link>
      <description>&lt;P&gt;Depending on the versions of the CIM and Windows TA, this base search might work for you:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Change_Analysis"."Account_Management" | where result_id="4726" | where tag="delete"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2018 22:39:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376645#M3773</guid>
      <dc:creator>dherrald_splunk</dc:creator>
      <dc:date>2018-11-05T22:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you edit a correlation rule in a datamodel in Splunk Enterprise Security?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376646#M3774</link>
      <description>&lt;P&gt;This worked, thank you. Our final search looks like this now:&lt;/P&gt;

&lt;P&gt;| from datamodel:"Change_Analysis"."Account_Management" | where result_id="4726" | where tag="delete"| stats max(_time) as "lastTime",latest(_raw) as "orig_raw",values(result) as "signature",values(src) as "src",values(dest) as "dest",count by "src_user","user" | where 'count'&amp;gt;0&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-you-edit-a-correlation-rule-in-a-datamodel-in-Splunk/m-p/376646#M3774</guid>
      <dc:creator>Tylerdygert</dc:creator>
      <dc:date>2020-09-29T21:55:29Z</dc:date>
    </item>
  </channel>
</rss>

