<?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: Why is my blacklist regular expression not working? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347426#M63789</link>
    <description>&lt;P&gt;So I tried that in the web interface, but I'm not seeing it change anything. I say that because when I search source=/var/log/audit/audit.log it shows contents still being uploaded. Is there something I'd have to do to make this take effect? Again, I'm only using the web interface so far.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2017 14:43:06 GMT</pubDate>
    <dc:creator>arohde</dc:creator>
    <dc:date>2017-03-14T14:43:06Z</dc:date>
    <item>
      <title>Why is my blacklist regular expression not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347423#M63786</link>
      <description>&lt;P&gt;Watching: /var/log (across 6 servers)&lt;/P&gt;

&lt;P&gt;Blacklist:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(audit|(\.gz$))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result: still uploads at least a gig of /var/log/audit/audit.log every day. I feel like I've tried everything (tweaking the regular expression, restarting Splunk, waiting)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 22:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347423#M63786</guid>
      <dc:creator>arohde</dc:creator>
      <dc:date>2017-03-13T22:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my blacklist regular expression not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347424#M63787</link>
      <description>&lt;P&gt;can you give examples of filenames in the monitored directory?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 01:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347424#M63787</guid>
      <dc:creator>dcarmack_splunk</dc:creator>
      <dc:date>2017-03-14T01:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my blacklist regular expression not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347425#M63788</link>
      <description>&lt;P&gt;I'd try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist = (?i:.*?\/audit\/.*$|.*\.gz$)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The initial flag just sets it case insensitive.  Then we have a choice of either any name with "/audit/" anywhere in it, lazy before, greedy after, or any file ending in .gz, greedy before because we're only backtracking at the end-of-field marker and that won't take long.&lt;/P&gt;

&lt;P&gt;Most of the answer came from here...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/30645/cant-get-a-blacklist-to-work-please-help.html"&gt;https://answers.splunk.com/answers/30645/cant-get-a-blacklist-to-work-please-help.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and here ...&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Whitelistorblacklistspecificincomingdata?r=searchtip"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Whitelistorblacklistspecificincomingdata?r=searchtip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 03:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347425#M63788</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-14T03:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my blacklist regular expression not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347426#M63789</link>
      <description>&lt;P&gt;So I tried that in the web interface, but I'm not seeing it change anything. I say that because when I search source=/var/log/audit/audit.log it shows contents still being uploaded. Is there something I'd have to do to make this take effect? Again, I'm only using the web interface so far.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347426#M63789</guid>
      <dc:creator>arohde</dc:creator>
      <dc:date>2017-03-14T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my blacklist regular expression not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347427#M63790</link>
      <description>&lt;P&gt;so UPDATE: If I put the exact same regex in my inputs.conf it works fine. just NOT IN THE WEB INTERFACE.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-blacklist-regular-expression-not-working/m-p/347427#M63790</guid>
      <dc:creator>arohde</dc:creator>
      <dc:date>2017-03-14T14:53:57Z</dc:date>
    </item>
  </channel>
</rss>

