<?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: How do I blacklist multiple events on same line: Can I use '-'? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-blacklist-multiple-events-on-same-line-Can-I-use/m-p/290969#M55501</link>
    <description>&lt;P&gt;You can either filter by eventcode or regex. According to Splunk Docs...You can specify one of two formats:&lt;/P&gt;

&lt;P&gt;One or more Event Log event codes or event IDs (Event Log code/ID format.)&lt;BR /&gt;
One or more sets of keys and regular expressions. (Advanced filtering format.)&lt;BR /&gt;
You cannot mix formats in a single entry. You also cannot mix formats in the same stanza.&lt;/P&gt;

&lt;P&gt;Examples -&lt;BR /&gt;
event code blacklist&lt;BR /&gt;
blacklist1 = 1100,1101,4624,4634,4647-4649&lt;/P&gt;

&lt;P&gt;regex blacklist&lt;BR /&gt;
blacklist1 = EventCode=%^200$% User=%drodman%&lt;/P&gt;

&lt;P&gt;You can specify up to 10 blacklist per input stanza. If you need more than this you might want to consider a whitelist strategy instead. You just whitelist the codes you need instead of blacklisting the ones you don't.&lt;/P&gt;

&lt;P&gt;More details here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf#Event_Log_whitelist_and_blacklist_formats"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf#Event_Log_whitelist_and_blacklist_formats&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2017 18:56:36 GMT</pubDate>
    <dc:creator>aivarson_splunk</dc:creator>
    <dc:date>2017-11-20T18:56:36Z</dc:date>
    <item>
      <title>How do I blacklist multiple events on same line: Can I use '-'?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-blacklist-multiple-events-on-same-line-Can-I-use/m-p/290968#M55500</link>
      <description>&lt;P&gt;I want to blacklist 4698, 4699, 4700, 4701,4702 if they contain 'Microsoft\Windows' in the Task Name.&lt;/P&gt;

&lt;P&gt;Would either of these work? &lt;BR /&gt;
blacklist1 = EventCode="4698,4699,4700,4701,4702" Message="(?:Task Name:).+(?:Microsoft\Windows?)"&lt;BR /&gt;
or &lt;BR /&gt;
blacklist1 = EventCode="4698-4702" Message="(?:Task Name:).+(?:Microsoft\Windows?)"&lt;/P&gt;

&lt;P&gt;Or would I have to have a separate line for each, such as :&lt;BR /&gt;
blacklist1 = EventCode="4698" Message="(?:Task Name:).+(?:Microsoft\Windows?)"&lt;BR /&gt;
blacklist2 = EventCode="4699" Message="(?:Task Name:).+(?:Microsoft\Windows?)"&lt;BR /&gt;
etc&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 16:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-blacklist-multiple-events-on-same-line-Can-I-use/m-p/290968#M55500</guid>
      <dc:creator>benbabich</dc:creator>
      <dc:date>2017-11-20T16:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I blacklist multiple events on same line: Can I use '-'?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-blacklist-multiple-events-on-same-line-Can-I-use/m-p/290969#M55501</link>
      <description>&lt;P&gt;You can either filter by eventcode or regex. According to Splunk Docs...You can specify one of two formats:&lt;/P&gt;

&lt;P&gt;One or more Event Log event codes or event IDs (Event Log code/ID format.)&lt;BR /&gt;
One or more sets of keys and regular expressions. (Advanced filtering format.)&lt;BR /&gt;
You cannot mix formats in a single entry. You also cannot mix formats in the same stanza.&lt;/P&gt;

&lt;P&gt;Examples -&lt;BR /&gt;
event code blacklist&lt;BR /&gt;
blacklist1 = 1100,1101,4624,4634,4647-4649&lt;/P&gt;

&lt;P&gt;regex blacklist&lt;BR /&gt;
blacklist1 = EventCode=%^200$% User=%drodman%&lt;/P&gt;

&lt;P&gt;You can specify up to 10 blacklist per input stanza. If you need more than this you might want to consider a whitelist strategy instead. You just whitelist the codes you need instead of blacklisting the ones you don't.&lt;/P&gt;

&lt;P&gt;More details here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf#Event_Log_whitelist_and_blacklist_formats"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/inputsconf#Event_Log_whitelist_and_blacklist_formats&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 18:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-blacklist-multiple-events-on-same-line-Can-I-use/m-p/290969#M55501</guid>
      <dc:creator>aivarson_splunk</dc:creator>
      <dc:date>2017-11-20T18:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I blacklist multiple events on same line: Can I use '-'?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-blacklist-multiple-events-on-same-line-Can-I-use/m-p/290970#M55502</link>
      <description>&lt;P&gt;Since Message="(?:Task Name:).+(?:Microsoft\Windows?)" is in regex form, the "EventCode=" must use regex as well.  &lt;/P&gt;

&lt;P&gt;You will have to break up "EventCode=" into two separate blacklist. For example:&lt;/P&gt;

&lt;P&gt;blacklist = EventCode="^469([8-9])$"  Message=blah&lt;BR /&gt;
blacklist1 = EventCode="^470([0-2])$" Message=blah&lt;/P&gt;

&lt;P&gt;This Splunk Doc provides an example of whitelisting, but both are similar.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Data/MonitorWindowseventlogdata"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Data/MonitorWindowseventlogdata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 21:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-blacklist-multiple-events-on-same-line-Can-I-use/m-p/290970#M55502</guid>
      <dc:creator>chanthongphiob</dc:creator>
      <dc:date>2017-11-20T21:47:28Z</dc:date>
    </item>
  </channel>
</rss>

