<?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 How to compare fields in different Eventcodes? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-compare-fields-in-different-Eventcodes/m-p/195549#M3404</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I would like to compare fields in different Eventcodes.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
In Eventcode 4720, I want to get the info for Creator name and Created account, then find the corresponding 4728 event (showing that the created account in 4720, is in a certain OU, like OU=DEV). If the OU is not equal to DEV, trigger alert.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jan 2015 09:39:45 GMT</pubDate>
    <dc:creator>zuyi21</dc:creator>
    <dc:date>2015-01-19T09:39:45Z</dc:date>
    <item>
      <title>How to compare fields in different Eventcodes?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-compare-fields-in-different-Eventcodes/m-p/195549#M3404</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I would like to compare fields in different Eventcodes.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
In Eventcode 4720, I want to get the info for Creator name and Created account, then find the corresponding 4728 event (showing that the created account in 4720, is in a certain OU, like OU=DEV). If the OU is not equal to DEV, trigger alert.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2015 09:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-compare-fields-in-different-Eventcodes/m-p/195549#M3404</guid>
      <dc:creator>zuyi21</dc:creator>
      <dc:date>2015-01-19T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare fields in different Eventcodes?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-compare-fields-in-different-Eventcodes/m-p/195550#M3405</link>
      <description>&lt;P&gt;Joining may help&lt;BR /&gt;
eventcode=4720 | join account [search eventcode=4728]&lt;/P&gt;

&lt;P&gt;Otherwise you can also try &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/transaction"&gt;transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2015 21:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-compare-fields-in-different-Eventcodes/m-p/195550#M3405</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2015-01-19T21:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare fields in different Eventcodes?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-compare-fields-in-different-Eventcodes/m-p/195551#M3406</link>
      <description>&lt;P&gt;Hi, i need help.&lt;/P&gt;

&lt;P&gt;Account_Name can be found both in eventcodes 4720 and 4728. How do i display the Account_Name information in both eventcodes?&lt;/P&gt;

&lt;P&gt;This is what i have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Security" (EventCode=4720 AND Account_Name="administrator") OR (EventCode=4728 AND Account_Name="administrator") 
| eval AccountCreator=mvindex(Account_Name,0) 
| eval AccountCreated=mvindex(Account_Name,1) 
| rename Group_Name as "Modified Group" 
| table _time, host, AccountCreator, AccountCreated, Modifier, "Modified Group", user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thx.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-compare-fields-in-different-Eventcodes/m-p/195551#M3406</guid>
      <dc:creator>zuyi21</dc:creator>
      <dc:date>2020-09-28T18:42:41Z</dc:date>
    </item>
  </channel>
</rss>

