<?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 not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/blacklist-not-working/m-p/40438#M7502</link>
    <description>&lt;P&gt;I think that your problem lies in the &lt;CODE&gt;blacklist&lt;/CODE&gt; regex;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;*&lt;/CODE&gt; is a quantifier which means 'match the preceding character zero or more times', and . (dot) means 'match any character' (including a literal dot). So &lt;CODE&gt;summary_*.diag&lt;/CODE&gt; means &lt;CODE&gt;summary&lt;/CODE&gt; followed by zero or more underscores, followed by a single character, followed by &lt;CODE&gt;diag&lt;/CODE&gt;. This will match the following (and a lot of other strings);&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;summary.diag
summary_1diag
summary____Gdiag
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, it can not match &lt;CODE&gt;summary_1.diag&lt;/CODE&gt;. A regex that matches &lt;CODE&gt;summary_&lt;/CODE&gt;, followed by numbers, followed by &lt;CODE&gt;.diag&lt;/CODE&gt; would look like;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;summary_\d+\.diag&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2013 07:16:23 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-05-21T07:16:23Z</dc:date>
    <item>
      <title>blacklist not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/blacklist-not-working/m-p/40437#M7501</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have an inputs.conf that is picking up a file that I want blacklisted. The file name is summary_1.diag. I thought this would filter it out. Any suggestions?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://F:\IBM\Lotus\Domino\Trace\*.diag]
sourcetype = STCommunityTraceLogs_diag
index = euc_sametimedata
disabled = false
followTail = 0
crcSalt = &amp;lt;SOURCE&amp;gt;
blacklist = summary_*.diag
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2013 01:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/blacklist-not-working/m-p/40437#M7501</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-05-21T01:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: blacklist not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/blacklist-not-working/m-p/40438#M7502</link>
      <description>&lt;P&gt;I think that your problem lies in the &lt;CODE&gt;blacklist&lt;/CODE&gt; regex;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;*&lt;/CODE&gt; is a quantifier which means 'match the preceding character zero or more times', and . (dot) means 'match any character' (including a literal dot). So &lt;CODE&gt;summary_*.diag&lt;/CODE&gt; means &lt;CODE&gt;summary&lt;/CODE&gt; followed by zero or more underscores, followed by a single character, followed by &lt;CODE&gt;diag&lt;/CODE&gt;. This will match the following (and a lot of other strings);&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;summary.diag
summary_1diag
summary____Gdiag
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, it can not match &lt;CODE&gt;summary_1.diag&lt;/CODE&gt;. A regex that matches &lt;CODE&gt;summary_&lt;/CODE&gt;, followed by numbers, followed by &lt;CODE&gt;.diag&lt;/CODE&gt; would look like;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;summary_\d+\.diag&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 07:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/blacklist-not-working/m-p/40438#M7502</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-21T07:16:23Z</dc:date>
    </item>
  </channel>
</rss>

