<?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: Conditional execution of transforms based on property of event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-execution-of-transforms-based-on-property-of-event/m-p/391811#M70002</link>
    <description>&lt;P&gt;Did you found any solution on this?&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 14:24:57 GMT</pubDate>
    <dc:creator>a_naoum</dc:creator>
    <dc:date>2020-05-19T14:24:57Z</dc:date>
    <item>
      <title>Conditional execution of transforms based on property of event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-execution-of-transforms-based-on-property-of-event/m-p/391810#M70001</link>
      <description>&lt;P&gt;Does anyone know of a way to control execution of transforms based on a non-metadata property of an event?  &lt;/P&gt;

&lt;P&gt;I have a collection of 100+ regular expressions which extract values using strongly typed field names within windows security logs.   I don't want Splunk to have to execute 100+ regular expressions against every event.   Ideally, I would like to control Splunk behavior such that only certain extraction rules are executed against events having certain patterns (in my case, EventCodes) within the sourcetype.  Is there a way to do this?&lt;/P&gt;

&lt;P&gt;Here is an example of the sort of logic I would like to be able to apply&lt;/P&gt;

&lt;P&gt;Props.conf:&lt;BR /&gt;
[source::WinEventLog:Security]&lt;BR /&gt;
REPORT-wineventlog_security_subject_extractions_1 = if(match(EventCode,(4624|4624),"wineventlog_security_subject_extractions_1",noop)&lt;/P&gt;

&lt;P&gt;Transforms.conf:&lt;BR /&gt;
[wineventlog_security_subject_extractions_1]&lt;BR /&gt;
SOURCE_KEY = _raw&lt;BR /&gt;
REGEX = Subject :\s+Security ID:\s+(.&lt;EM&gt;)\s+Account Name:\s+(.&lt;/EM&gt;)\s+Account Domain:\s+(.&lt;EM&gt;)\s+Logon ID:\s+(.&lt;/EM&gt;)&lt;BR /&gt;
FORMAT = Subject_SID::$1 Subject_Account_Name::$2 Subject_Account_Domain::$3 Subject_Logon_ID::$4&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:03:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-execution-of-transforms-based-on-property-of-event/m-p/391810#M70001</guid>
      <dc:creator>dstaulcu</dc:creator>
      <dc:date>2020-09-29T20:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional execution of transforms based on property of event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-execution-of-transforms-based-on-property-of-event/m-p/391811#M70002</link>
      <description>&lt;P&gt;Did you found any solution on this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 14:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-execution-of-transforms-based-on-property-of-event/m-p/391811#M70002</guid>
      <dc:creator>a_naoum</dc:creator>
      <dc:date>2020-05-19T14:24:57Z</dc:date>
    </item>
  </channel>
</rss>

