<?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 inputs.conf Blacklist Query in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-Blacklist-Query/m-p/481220#M82487</link>
    <description>&lt;P&gt;Hi - I'm struggling with the syntax of this blacklist expression and would much appreciate some guidance from anybody that can help. What I'd like to do is blacklist all events other than EventCode=4740 which match the pattern Message=AccountName: *$".&lt;/P&gt;

&lt;P&gt;I've been trying variations on the following expression without much success:&lt;BR /&gt;
blacklist1 = EventCode="(?!4740)" Message="Account Name:[\s+]&lt;EM&gt;(.&lt;/EM&gt;\$)"&lt;/P&gt;

&lt;P&gt;The 'Message' expression works fine - it's the 'EventCode' negative lookahead clause that I'm struggling with:&lt;/P&gt;

&lt;P&gt;Thanks in advance for any suggestions you can provide.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 13:12:00 GMT</pubDate>
    <dc:creator>kevinmorley</dc:creator>
    <dc:date>2020-04-21T13:12:00Z</dc:date>
    <item>
      <title>inputs.conf Blacklist Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-Blacklist-Query/m-p/481220#M82487</link>
      <description>&lt;P&gt;Hi - I'm struggling with the syntax of this blacklist expression and would much appreciate some guidance from anybody that can help. What I'd like to do is blacklist all events other than EventCode=4740 which match the pattern Message=AccountName: *$".&lt;/P&gt;

&lt;P&gt;I've been trying variations on the following expression without much success:&lt;BR /&gt;
blacklist1 = EventCode="(?!4740)" Message="Account Name:[\s+]&lt;EM&gt;(.&lt;/EM&gt;\$)"&lt;/P&gt;

&lt;P&gt;The 'Message' expression works fine - it's the 'EventCode' negative lookahead clause that I'm struggling with:&lt;/P&gt;

&lt;P&gt;Thanks in advance for any suggestions you can provide.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 13:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-Blacklist-Query/m-p/481220#M82487</guid>
      <dc:creator>kevinmorley</dc:creator>
      <dc:date>2020-04-21T13:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf Blacklist Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-Blacklist-Query/m-p/481221#M82488</link>
      <description>&lt;P&gt;Please clarify.  Do you want to see only event 4740 with AccountName=* or event 4740 with AccountName!="*$"?&lt;BR /&gt;
Have you considered a whitelist?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 13:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-Blacklist-Query/m-p/481221#M82488</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-21T13:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: inputs.conf Blacklist Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-Blacklist-Query/m-p/481222#M82489</link>
      <description>&lt;P&gt;I want to exclude all events except for 4740 which match the pattern Message="Account Name: *$".&lt;BR /&gt;
By way of example&lt;BR /&gt;
Include: EventCode="4740" Message="Account Name: computer1$"&lt;BR /&gt;
Exclude: EventCode="4652" Message="Account Name: computer1$"&lt;/P&gt;

&lt;P&gt;I think that a whitelist would have a similar issue as it would require a negative lookahead in the 'Message' clause - but please do feel free to correct me if I'm mistaken.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 13:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/inputs-conf-Blacklist-Query/m-p/481222#M82489</guid>
      <dc:creator>kevinmorley</dc:creator>
      <dc:date>2020-04-21T13:46:47Z</dc:date>
    </item>
  </channel>
</rss>

