<?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 Splunk Monitoring in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Monitoring/m-p/313115#M58682</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I have configured two monitor stanzas with whitelist and blacklist attributes to index application logs from an AIS server. The monitor stanzas will look as below:&lt;/P&gt;

&lt;P&gt;[monitor:///opt/users/siva/logs/]&lt;BR /&gt;
whitelist = (ac|bd|eg|fh).access.log$&lt;BR /&gt;
blacklist = (.\d+|.gz)$&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = accesslogs&lt;BR /&gt;
recursive = true&lt;/P&gt;

&lt;P&gt;[monitor:///opt/users/siva/logs/system_logs/]&lt;BR /&gt;
whitelist = (xyz|uv|pqr).log$&lt;BR /&gt;
blacklist = (.\d+|.gz)$&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = systemlogs&lt;BR /&gt;
recursive = true&lt;/P&gt;

&lt;P&gt;With these configurations, Splunk didn't monitor and index any logs. But when I changed the blacklist attribute value to blacklist = .(gz|\d+) resulted in indexing the logs to Splunk. Even if the regular expression for the blacklist result the same, we didn't get the logs for first one and got the results for the second.&lt;/P&gt;

&lt;P&gt;Is there any format or syntax to be used for the blacklist attribute? &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 22:18:42 GMT</pubDate>
    <dc:creator>siva_cg</dc:creator>
    <dc:date>2017-07-13T22:18:42Z</dc:date>
    <item>
      <title>Splunk Monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Monitoring/m-p/313115#M58682</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I have configured two monitor stanzas with whitelist and blacklist attributes to index application logs from an AIS server. The monitor stanzas will look as below:&lt;/P&gt;

&lt;P&gt;[monitor:///opt/users/siva/logs/]&lt;BR /&gt;
whitelist = (ac|bd|eg|fh).access.log$&lt;BR /&gt;
blacklist = (.\d+|.gz)$&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = accesslogs&lt;BR /&gt;
recursive = true&lt;/P&gt;

&lt;P&gt;[monitor:///opt/users/siva/logs/system_logs/]&lt;BR /&gt;
whitelist = (xyz|uv|pqr).log$&lt;BR /&gt;
blacklist = (.\d+|.gz)$&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = systemlogs&lt;BR /&gt;
recursive = true&lt;/P&gt;

&lt;P&gt;With these configurations, Splunk didn't monitor and index any logs. But when I changed the blacklist attribute value to blacklist = .(gz|\d+) resulted in indexing the logs to Splunk. Even if the regular expression for the blacklist result the same, we didn't get the logs for first one and got the results for the second.&lt;/P&gt;

&lt;P&gt;Is there any format or syntax to be used for the blacklist attribute? &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 22:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Monitoring/m-p/313115#M58682</guid>
      <dc:creator>siva_cg</dc:creator>
      <dc:date>2017-07-13T22:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Monitoring</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Monitoring/m-p/313116#M58683</link>
      <description>&lt;P&gt;Blacklists and whitelists are unanchored regular expressions. In regular expressions the period (.) is a wild-card representing a single character. If you want to specify the period, it should be "escaped" with a backslash like this example&lt;/P&gt;

&lt;P&gt;blacklist=.\d+$&lt;/P&gt;

&lt;P&gt;which means "do not index any file whose name ends in a period followed by one or more digits."&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 22:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Monitoring/m-p/313116#M58683</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-07-13T22:31:08Z</dc:date>
    </item>
  </channel>
</rss>

