<?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: Blacklist am event code on windows in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399346#M71141</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I know you ask for blacklist and I see why, but if this is not working for you, did you try sending to nullqueque on the Indexer?&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [WinEventLog:Security]

 TRANSFORMS-&amp;lt;name&amp;gt;=&amp;lt;name_in_transforms&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [&amp;lt;name_in_transforms&amp;gt;]

 REGEX="EventCode=(4747|5156)"


 DEST_KEY=queue

 FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to filter for more than the EventCode number, you can just add to the Regex, but you will need a (?s) infront, because of the new line characters in wineventlog events ( &lt;CODE&gt;REGEX="(?s)EventCode=(4662|4634|4672).*Message=[....]&lt;/CODE&gt; )&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 16:33:09 GMT</pubDate>
    <dc:creator>dkeck</dc:creator>
    <dc:date>2019-01-15T16:33:09Z</dc:date>
    <item>
      <title>Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399345#M71140</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have been trying to blacklist an event code from windows as follows... but the event keep on coming.&lt;/P&gt;

&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
start_from = oldest&lt;BR /&gt;
current_only = 0&lt;BR /&gt;
evt_resolve_ad_obj = 1&lt;BR /&gt;
checkpointInterval = 5&lt;BR /&gt;
blacklist1 = EventCode="4747"&lt;BR /&gt;
blacklist2 = EventCode="5156"&lt;/P&gt;

&lt;P&gt;Grateful to let me know what I am doing wrong.&lt;/P&gt;

&lt;P&gt;Rgds.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399345#M71140</guid>
      <dc:creator>irshadrahimbux</dc:creator>
      <dc:date>2020-09-29T22:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399346#M71141</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I know you ask for blacklist and I see why, but if this is not working for you, did you try sending to nullqueque on the Indexer?&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [WinEventLog:Security]

 TRANSFORMS-&amp;lt;name&amp;gt;=&amp;lt;name_in_transforms&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [&amp;lt;name_in_transforms&amp;gt;]

 REGEX="EventCode=(4747|5156)"


 DEST_KEY=queue

 FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to filter for more than the EventCode number, you can just add to the Regex, but you will need a (?s) infront, because of the new line characters in wineventlog events ( &lt;CODE&gt;REGEX="(?s)EventCode=(4662|4634|4672).*Message=[....]&lt;/CODE&gt; )&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 16:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399346#M71141</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-15T16:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399347#M71142</link>
      <description>&lt;P&gt;Thanks.&lt;BR /&gt;
Sorry for some silly question. I am using splunk on windows. Where is the transforms.conf and props.conf found?&lt;/P&gt;

&lt;P&gt;Also, I read that some are using splunkforwarder. Is that necessary to be used? Or can we add these blacklist / nullqueue to splunk only.&lt;/P&gt;

&lt;P&gt;Rgds.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399347#M71142</guid>
      <dc:creator>irshadrahimbux</dc:creator>
      <dc:date>2019-01-15T17:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399348#M71143</link>
      <description>&lt;P&gt;you set the nullQueue on your indexer. You can  create your own transforms and props in any app you like. &lt;/P&gt;

&lt;P&gt;Just place it in &lt;CODE&gt;$SPLUNK_HOME/splunk/etc/apps/&amp;lt;your app&amp;gt;/local&lt;/CODE&gt;. You would have to create your app and local directory OR you place it in &lt;CODE&gt;$SPLUNK_HOME/splunk/etc/system/local&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Don´t forget to restart after the changes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399348#M71143</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-15T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399349#M71144</link>
      <description>&lt;P&gt;I have added props and tranforms.conf in $SPLUNK_HOME/splunk/etc/system/local.&lt;/P&gt;

&lt;P&gt;Am having the following error on restarting splunk:&lt;/P&gt;

&lt;P&gt;Splunk&amp;gt; Map. Reduce. Recycle.&lt;/P&gt;

&lt;P&gt;Checking prerequisites...&lt;BR /&gt;
        Checking http port [8000]: open&lt;BR /&gt;
        Checking mgmt port [8089]: open&lt;BR /&gt;
        Checking appserver port [127.0.0.1:8065]: open&lt;BR /&gt;
        Checking kvstore port [8191]: open&lt;BR /&gt;
        Checking configuration...  Done.&lt;BR /&gt;
        Checking critical directories...        Done&lt;BR /&gt;
        Checking indexes...&lt;BR /&gt;
                (skipping validation of index paths because not running as emtelorg\emteladmin)&lt;BR /&gt;
                Validated: _audit _internal _introspection _telemetry _thefishbucket history main summary&lt;BR /&gt;
        Done&lt;BR /&gt;
        Checking filesystem compatibility...  Done&lt;BR /&gt;
        Checking conf files for problems...&lt;BR /&gt;
                Invalid key in stanza [WinEventLog:Security] in C:\Program Files\Splunk\etc\system\local\props.conf, line 3: {{TRANSFORMS-&lt;NAME&gt; (value: &lt;NAME_IN_TRANSFORMS&gt;).&lt;BR /&gt;
                Invalid key in stanza [&lt;NAME_IN_TRANSFORMS&gt;] in C:\Program Files\Splunk\etc\system\local\transforms.conf, line 3:   {{REGEX (value: "EventCode=(5156|4634|4672)").&lt;BR /&gt;
                Your indexes and inputs configurations are not internally consistent. For more information, run 'splunk btool check --debug'&lt;BR /&gt;
        Done&lt;BR /&gt;
        Checking default conf files for edits...&lt;BR /&gt;
        Validating installed files against hashes from 'C:\Program Files\Splunk\splunk-7.2.3-06d57c595b80-windows-64-manifest'&lt;BR /&gt;
        All installed files intact.&lt;BR /&gt;
        Done&lt;BR /&gt;
All preliminary checks passed.&lt;/NAME_IN_TRANSFORMS&gt;&lt;/NAME_IN_TRANSFORMS&gt;&lt;/NAME&gt;&lt;/P&gt;

&lt;P&gt;Starting splunk server daemon (splunkd)...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399349#M71144</guid>
      <dc:creator>irshadrahimbux</dc:creator>
      <dc:date>2020-09-29T22:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399350#M71145</link>
      <description>&lt;P&gt;sry my anwers above had some formatting issues. Please copy the transforms and props code again I changed it.&lt;/P&gt;

&lt;P&gt;don´t forget to change the &lt;CODE&gt;"&amp;lt;name&amp;gt;"&lt;/CODE&gt; values to your own names.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399350#M71145</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-15T18:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399351#M71146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;A quick update is that blacklist is working for my localhost events only. Sourcetype for localhost is coming as WinEventLog:Security.&lt;BR /&gt;
inputs.conf:&lt;/P&gt;

&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
start_from = oldest&lt;BR /&gt;
current_only = 0&lt;BR /&gt;
evt_resolve_ad_obj = 1&lt;BR /&gt;
checkpointInterval = 5&lt;BR /&gt;
blacklist = 4658&lt;/P&gt;

&lt;P&gt;This works perfect and block all 4658 events.&lt;/P&gt;

&lt;P&gt;However, I am collecting WMI event log security for other machines. Sourcetype in splunk is "WMI:WinEventLog://Security".&lt;BR /&gt;
And these are not getting filtered.&lt;/P&gt;

&lt;P&gt;P.S. I have splunk 7.2.3&lt;/P&gt;

&lt;P&gt;Any ideas on how to make it work.&lt;/P&gt;

&lt;P&gt;Rgds,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399351#M71146</guid>
      <dc:creator>irshadrahimbux</dc:creator>
      <dc:date>2020-09-29T23:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399352#M71147</link>
      <description>&lt;P&gt;Just add to your inputs stanza for "WMI:WinEventLog://Security" your &lt;CODE&gt;blacklist = 4658&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 07:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399352#M71147</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-16T07:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399353#M71148</link>
      <description>&lt;P&gt;Hi Dkeck,&lt;/P&gt;

&lt;P&gt;Finally it works. Yes I had to add WMI:WinEventLog://Security and i used the props and transforms as you mentioned above and it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 07:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399353#M71148</guid>
      <dc:creator>irshadrahimbux</dc:creator>
      <dc:date>2019-01-16T07:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist am event code on windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399354#M71149</link>
      <description>&lt;P&gt;Than please be so kind and accept my inital answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 07:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklist-am-event-code-on-windows/m-p/399354#M71149</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-16T07:44:44Z</dc:date>
    </item>
  </channel>
</rss>

