<?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 Include Windows Event Log and Exclude LognType in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Include-Windows-Event-Log-and-Exclude-LognType/m-p/460383#M79480</link>
    <description>&lt;P&gt;Hi, I have a requirement for forward 4 Windows Log EventCodes  4672, 4673, 4674 &amp;amp; 4624 to a  destination from the HWFs, however exclude if these EventCode messages are for the "Logon Type=3" and forward rest everything.&lt;/P&gt;

&lt;P&gt;Expected result is something like:&lt;/P&gt;

&lt;P&gt;EventCode=4672 &amp;amp; LogonType= 3 : DISCARDED&lt;BR /&gt;
EventCode=4673 &amp;amp; LogonType= 3 : DISCARDED&lt;BR /&gt;
EventCode=4675 &amp;amp; LogonType= * : DISCARDED&lt;/P&gt;

&lt;P&gt;EventCode=4672 &amp;amp; LogonType= 2 : PROCESSED&lt;/P&gt;

&lt;P&gt;etc&lt;/P&gt;

&lt;P&gt;Does the below settings in the props and conf really help for this ?   Thanks in advance.&lt;/P&gt;

&lt;P&gt;cat outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog:syslog_destination]
server=:514
type=udp
disabled=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cat props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
TRANSFORMS-routing = routeDestination,excludeDestination
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cat transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[routeDestination]
REGEX=EventCode=(4672|4673|4674|4624)
DEST_KEY=_SYSLOG_ROUTING
FORMAT=syslog_destination

[excludeDestination]
REGEX=Logon\sType:\t+3
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Mar 2020 13:02:41 GMT</pubDate>
    <dc:creator>ajith_sukumaran</dc:creator>
    <dc:date>2020-03-27T13:02:41Z</dc:date>
    <item>
      <title>Include Windows Event Log and Exclude LognType</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Include-Windows-Event-Log-and-Exclude-LognType/m-p/460383#M79480</link>
      <description>&lt;P&gt;Hi, I have a requirement for forward 4 Windows Log EventCodes  4672, 4673, 4674 &amp;amp; 4624 to a  destination from the HWFs, however exclude if these EventCode messages are for the "Logon Type=3" and forward rest everything.&lt;/P&gt;

&lt;P&gt;Expected result is something like:&lt;/P&gt;

&lt;P&gt;EventCode=4672 &amp;amp; LogonType= 3 : DISCARDED&lt;BR /&gt;
EventCode=4673 &amp;amp; LogonType= 3 : DISCARDED&lt;BR /&gt;
EventCode=4675 &amp;amp; LogonType= * : DISCARDED&lt;/P&gt;

&lt;P&gt;EventCode=4672 &amp;amp; LogonType= 2 : PROCESSED&lt;/P&gt;

&lt;P&gt;etc&lt;/P&gt;

&lt;P&gt;Does the below settings in the props and conf really help for this ?   Thanks in advance.&lt;/P&gt;

&lt;P&gt;cat outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog:syslog_destination]
server=:514
type=udp
disabled=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cat props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
TRANSFORMS-routing = routeDestination,excludeDestination
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cat transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[routeDestination]
REGEX=EventCode=(4672|4673|4674|4624)
DEST_KEY=_SYSLOG_ROUTING
FORMAT=syslog_destination

[excludeDestination]
REGEX=Logon\sType:\t+3
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Mar 2020 13:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Include-Windows-Event-Log-and-Exclude-LognType/m-p/460383#M79480</guid>
      <dc:creator>ajith_sukumaran</dc:creator>
      <dc:date>2020-03-27T13:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Include Windows Event Log and Exclude LognType</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Include-Windows-Event-Log-and-Exclude-LognType/m-p/460384#M79481</link>
      <description>&lt;P&gt;For the eventCode filtering you can simply use Whitelist in inputs.conf to only collect EventCode 4672, 4673, 4674 &amp;amp; 4624. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Admin/Inputsconf&lt;/A&gt; (see whitelist for Windows Event Log Monitor) &lt;/P&gt;

&lt;P&gt;And after, only have the excludeDestination as a stanza in your transforms.conf. &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Otherwise I think you configuration is okay, but you'll have to change your props.conf to : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [WinEventLog:Security]
 TRANSFORMS-routing = excludeDestination, routeDestination
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Because you want first to discard the Logon_Type=3 then keep the log if the EventCode match, not the other way around because the EventCode will always match and therefore it will always use the routeDestination. &lt;/P&gt;

&lt;P&gt;It works like ACL, first matched, first served. &lt;/P&gt;

&lt;P&gt;3no&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 09:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Include-Windows-Event-Log-and-Exclude-LognType/m-p/460384#M79481</guid>
      <dc:creator>3no</dc:creator>
      <dc:date>2020-03-30T09:23:07Z</dc:date>
    </item>
  </channel>
</rss>

