<?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: Filtering events using NullQueue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66405#M13344</link>
    <description>&lt;P&gt;Can this be placed on the servers that are running the Forwarder?  I would rather have it not sent to the Indexer at all.  Or maybe that is what is implied?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2013 20:19:52 GMT</pubDate>
    <dc:creator>erstexas</dc:creator>
    <dc:date>2013-06-21T20:19:52Z</dc:date>
    <item>
      <title>Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66392#M13331</link>
      <description>&lt;P&gt;I was wondering if there is any way to filter eventcodes, but not every event that is being passed through. For example is there a way to block EventCode 4624, but just the debug messages and let the rest pass?&lt;/P&gt;

&lt;P&gt;This is what we currently have to block windows EventCodes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=EventCode=(4624|4776|4662|4634|4688|4648|4907|4768|4624||538|560|552|534)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We want to remove EventCode=4624 leaving the rest.  the EventCode=4624 is generated because of "An account was successfully logged on" event on all servers.  We want this enabled for most windows servers, but want to block this event from our 13 domain controller hostnames.  Is it possible to have multiple regexes sending to null Queues?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 18:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66392#M13331</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-20T18:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66393#M13332</link>
      <description>&lt;P&gt;To use the nullQueue, you must be able to write a regular expression that identifies the events to be eliminated.&lt;/P&gt;

&lt;P&gt;For the event code, that would be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EventCode\s*=\s*4624
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I am not sure how you would identify this as a debug message. Can you post an example of a few events?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 19:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66393#M13332</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-20T19:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66394#M13333</link>
      <description>&lt;P&gt;If you by debug mean the &lt;CODE&gt;Type=Debug&lt;/CODE&gt; (I don't know if it exists, I only have 'Informational' in my logs). Therefore I used ComputerName in the example below.&lt;/P&gt;

&lt;P&gt;The following regex works with rex inline in the search. It should probably work with the instructions in &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/Deploy/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.1/Deploy/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=wineventlog:security EventCode="4624" | rex ".*(?&amp;lt;blaha&amp;gt;EventCode=4624[\n\r\w\.=]*ComputerName=some.host.name).*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66394#M13333</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T12:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66395#M13334</link>
      <description>&lt;P&gt;[Updated to show that you can do multiple transforms]&lt;/P&gt;

&lt;P&gt;Okay - given the answer from Kristian about the type, I think I can show you how to filter the events. Assuming that the sourcetype is called WinEventLog:Security...&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
TRANSFORMS-t1=eliminate-4624-debug
TRANSFORMS-t2=eliminate-eventcodes
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[eliminate-4624-debug]
REGEX=(?m)EventCode\s*=\s*4624.*?Type\s*=\s*Debug\s
DEST_KEY=queue
FORMAT=nullQueue

[eliminate-eventcodes]
REGEX=EventCode=(4776|4662|4634|4688|4648|4907|4768|4624||538|560|552|534)
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, this is not the tightest regular expression, so I would test it with the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Security" 
| regex _raw="(?m)EventCode\s*=\s*4624.*?Type\s*=\s*Debug\s"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this search matches &lt;STRONG&gt;only&lt;/STRONG&gt; the data that you want to eliminate, then great. Otherwise, I may still need to see a sample of the data...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 20:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66395#M13334</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-20T20:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66396#M13335</link>
      <description>&lt;P&gt;well, I made an assumption regarding the Type=Debug... I'd also like sample data...&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 21:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66396#M13335</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-20T21:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66397#M13336</link>
      <description>&lt;P&gt;I dont know if that is exactly what i was looking for. I probably worded the question in a confusing way.&lt;/P&gt;

&lt;P&gt;Heres another example: &lt;BR /&gt;
we want to remove EventCode=4624 leaving the rest.  the EventCode=4624 is generated because of "An account was successfully logged on" event on all servers.  We want this enabled for most windows servers, but want to block this event from our 13 domain controller hostnames.  Is it possible to have multiple regexes sending to null Queues? AND if so how would we do this?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 21:35:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66397#M13336</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-20T21:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66398#M13337</link>
      <description>&lt;P&gt;I believe this is exactly what i am looking for. We were just trying to use the debug messages as an example to get the concept. I will test it out next week and let you know. I thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66398#M13337</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-21T13:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66399#M13338</link>
      <description>&lt;P&gt;Thank you for your help Kristian.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66399#M13338</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-21T13:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66400#M13339</link>
      <description>&lt;P&gt;Yes you can have multiple transforms that send stuff to the null queue;&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
&lt;CODE&gt;[sourcetype_x]&lt;BR /&gt;
TRANSFORMS-delete_stuff = drop_a, drop_b&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
transforms.conf&lt;BR /&gt;
&lt;CODE&gt;[drop_a]&lt;BR /&gt;
REGEX = a&lt;BR /&gt;
DEST = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;[drop_b]&lt;BR /&gt;
REGEX = b&lt;BR /&gt;
DEST = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;That's the same as having &lt;CODE&gt;REGEX = a|b&lt;/CODE&gt; in one nullQueue transform.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66400#M13339</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T12:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66401#M13340</link>
      <description>&lt;P&gt;This is what we currently have to block windows EventCodes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=EventCode=(4624|4776|4662|4634|4688|4648|4907|4768|4624||538|560|552|534)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We want to remove EventCode=4624 leaving the rest.  the EventCode=4624 is generated because of "An account was successfully logged on" event on all servers.  We want this enabled for most windows servers, but want to block this event from our 13 domain controller hostnames.  Is it possible to have multiple regexes sending to null Queues?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66401#M13340</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-21T13:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66402#M13341</link>
      <description>&lt;P&gt;This is what we currently have to block windows EventCodes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=EventCode=(4624|4776|4662|4634|4688|4648|4907|4768|4624||538|560|552|534)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We want to remove EventCode=4624 leaving the rest.  the EventCode=4624 is generated because of "An account was successfully logged on" event on all servers.  We want this enabled for most windows servers, but want to block this event from our 13 domain controller hostnames.  Is it possible to have multiple regexes sending to null Queues?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66402#M13341</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-21T13:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66403#M13342</link>
      <description>&lt;P&gt;I am curious how you would change using nullqueue/blacklist to the more common way of doing it where you have a "pass" transform with a whitelist and nullqueue anything else, but still allow for the special case he brought up here where you want to drop the debug 4624 events.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 22:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66403#M13342</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2013-02-15T22:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66404#M13343</link>
      <description>&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/users/138267/michaelschymanski"&gt;Michael&lt;/A&gt; - I would suggest that you have different stanzas in &lt;CODE&gt;props.conf&lt;/CODE&gt; that invoke different stanzas in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
All of the stanzas could send data to the &lt;CODE&gt;nullqueue&lt;/CODE&gt; but each would have a different regex. Even if there is a way to combine them, I would probably keep them separate for clarity.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2013 19:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66404#M13343</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-02-18T19:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66405#M13344</link>
      <description>&lt;P&gt;Can this be placed on the servers that are running the Forwarder?  I would rather have it not sent to the Indexer at all.  Or maybe that is what is implied?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 20:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66405#M13344</guid>
      <dc:creator>erstexas</dc:creator>
      <dc:date>2013-06-21T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66406#M13345</link>
      <description>&lt;P&gt;@erstexas - it depends. On a Universal Forwarder, no. On a heavy forwarder, yes, you can place the transforms.conf and the props.conf on the forwarder.&lt;/P&gt;

&lt;P&gt;However, Splunk generally recommends that you use a Universal Forwarder and do this parsing on the indexers. This keeps the processing load low on the production server that is running the forwarder. If you are thinking that you want to limit the network traffic, good idea but - experience says that it isn't worth the trouble unless you will be eliminating more than 50% of the events before forwarding.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 23:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66406#M13345</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-06-21T23:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66407#M13346</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;can i do the same  as :  REGEX=EventCode=(4776|4662|4634|4688|4648|4907|4768|4624||538|560|552|534)&lt;/P&gt;

&lt;P&gt;if the EventCode is a field i created in an extract field ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 09:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/66407#M13346</guid>
      <dc:creator>shayfa</dc:creator>
      <dc:date>2015-11-11T09:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/507296#M86321</link>
      <description>&lt;P&gt;What would my REGEX line in the transforms.conf be to ELIMINATE any events that don't have this string? I must be missing something. I only want to ingest events that have this string at the beginning of the line:&amp;nbsp; "|&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;|"&amp;nbsp;&lt;/P&gt;&lt;P&gt;In REGEX that should be ^\|&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;\| right?&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how to i set the transforms.conf REGEX= line to say anything that doesn't match the above REGEX, drop to the nullqueue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;BR /&gt;&lt;BR /&gt;Joe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 19:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/507296#M86321</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2020-07-03T19:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering events using NullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/628794#M107898</link>
      <description>&lt;P&gt;Some comments to the above post.&lt;/P&gt;&lt;P&gt;Its better to remove stuff at the Universal Forwarder instead of HF or Index.&lt;/P&gt;&lt;P&gt;So to remove 4662, add the following to an &lt;STRONG&gt;input.file&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;# Used to block 4662 message&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;[WinEventLog://Security]&lt;BR /&gt;blacklist1 =&amp;nbsp;4662&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or you can do like this.&amp;nbsp; Block all 4662 message except 4662 with&amp;nbsp;&lt;STRONG&gt;Message="ms-Mcs-AdmPwd"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;[WinEventLog://Security]&lt;BR /&gt;whitelist1 = EventCode="^4662$" Message="ms-Mcs-AdmPwd"&lt;BR /&gt;whitelist2 = EventCode="^((?!4662$)[0-9]*)$"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Take care with this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;REGEX=EventCode=(4776|4662|4634|4688|4648|4907|4768|4624&lt;STRONG&gt;||&lt;/STRONG&gt;538|560|552|534)&lt;/PRE&gt;&lt;P&gt;This may block all, due to the double ||,&amp;nbsp; &amp;nbsp;I gess that is a typo.&lt;BR /&gt;Also it will block 1552, 5525 etc, so here you should use ^ and $&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Jan 2023 07:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filtering-events-using-NullQueue/m-p/628794#M107898</guid>
      <dc:creator>jotne</dc:creator>
      <dc:date>2023-01-30T07:52:30Z</dc:date>
    </item>
  </channel>
</rss>

