<?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 to blacklist files from a particular log? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261146#M50101</link>
    <description>&lt;P&gt;My goal is to exclude all forms of that file.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 21:50:19 GMT</pubDate>
    <dc:creator>bbazian</dc:creator>
    <dc:date>2017-01-26T21:50:19Z</dc:date>
    <item>
      <title>How to blacklist files from a particular log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261142#M50097</link>
      <description>&lt;P&gt;I would like to blacklist all files for a particular log from /var/logs.  What is the proper format to not forward the log or the rolled log?&lt;/P&gt;

&lt;P&gt;Here is what I tried but did not work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
disabled = false
index = ftp-sftp
blacklist = rackspace-monitoring-agent\.log.\[12345]$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 10:53:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261142#M50097</guid>
      <dc:creator>bbazian</dc:creator>
      <dc:date>2017-01-26T10:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist files from a particular log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261143#M50098</link>
      <description>&lt;P&gt;Without knowing the file names, it would be difficult to tell if above is correct or not. Once correction in the regex above is to remove escaping of square bracket. Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; blacklist = rackspace-monitoring-agent\.log\.[12345]$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; blacklist = rackspace-monitoring-agent\.log\.\d$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For better suggestions, please share sample file name, including the one you want to keep and you don't want to keep.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261143#M50098</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T19:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist files from a particular log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261144#M50099</link>
      <description>&lt;P&gt;The files would probably roll to &lt;/P&gt;

&lt;P&gt;rackspace-monitoring-agent.log&lt;BR /&gt;
rackspace-monitoring-agent.log.1&lt;BR /&gt;
rackspace-monitoring-agent.log.2&lt;BR /&gt;
rackspace-monitoring-agent.log.3&lt;BR /&gt;
rackspace-monitoring-agent.log.4&lt;BR /&gt;
rackspace-monitoring-agent.log.5&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261144#M50099</guid>
      <dc:creator>bbazian</dc:creator>
      <dc:date>2017-01-26T21:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist files from a particular log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261145#M50100</link>
      <description>&lt;P&gt;If your goal is to just monitor the file rackspace-monitoring-agent.log and not the roll over files (as they should've already be monitored when they were with original name), and there are not other log files under directory /var/log that you want to monitor, the you could simply specify the file that you want to monitor in the monitoring stanza, like this. No blacklist/whitelist required in that case.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/rackspace-monitoring-agent.log]
 disabled = false
 index = ftp-sftp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;For drop all varations of file with rackspace-montoring-agent.log from being monitored, try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
 disabled = false
 index = ftp-sftp
 blacklist = rackspace-monitoring-agent\.(log$|log\.\d+$)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:46:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261145#M50100</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist files from a particular log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261146#M50101</link>
      <description>&lt;P&gt;My goal is to exclude all forms of that file.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261146#M50101</guid>
      <dc:creator>bbazian</dc:creator>
      <dc:date>2017-01-26T21:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist files from a particular log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261147#M50102</link>
      <description>&lt;P&gt;Try the updated answer.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261147#M50102</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-26T21:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist files from a particular log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261148#M50103</link>
      <description>&lt;P&gt;@bbazian - Were you able to test out somesoni2's updated answer? Did it work? If yes, please don't forget to resolve this post by clicking on "Accept". If you still need more help, please provide a comment with some feedback. Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 04:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-files-from-a-particular-log/m-p/261148#M50103</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-02-12T04:52:51Z</dc:date>
    </item>
  </channel>
</rss>

