<?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 How to add blacklist in inputs.conf file using Linux Command in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-blacklist-in-inputs-conf-file-using-Linux-Command/m-p/208715#M41116</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;We have a Splunk forwarder installed on a Linux platform. I have already added the monitor details in inputs.conf file. Now I want to avoid the files which have "test" in the name. So I need to add blacklist = test in inputs.conf file. Please let me know how to add it.&lt;/P&gt;

&lt;P&gt;e;g ./splunk edit monitor &lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2015 06:28:19 GMT</pubDate>
    <dc:creator>chris1</dc:creator>
    <dc:date>2015-09-10T06:28:19Z</dc:date>
    <item>
      <title>How to add blacklist in inputs.conf file using Linux Command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-blacklist-in-inputs-conf-file-using-Linux-Command/m-p/208715#M41116</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;We have a Splunk forwarder installed on a Linux platform. I have already added the monitor details in inputs.conf file. Now I want to avoid the files which have "test" in the name. So I need to add blacklist = test in inputs.conf file. Please let me know how to add it.&lt;/P&gt;

&lt;P&gt;e;g ./splunk edit monitor &lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 06:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-blacklist-in-inputs-conf-file-using-Linux-Command/m-p/208715#M41116</guid>
      <dc:creator>chris1</dc:creator>
      <dc:date>2015-09-10T06:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add blacklist in inputs.conf file using Linux Command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-blacklist-in-inputs-conf-file-using-Linux-Command/m-p/208716#M41117</link>
      <description>&lt;P&gt;You can't. See here for all the options you can do via the CLI:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/Data/MonitorfilesanddirectoriesusingtheCLI"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/Data/MonitorfilesanddirectoriesusingtheCLI&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Adding a blacklist isn't one of them. You could probably do it with some regex/sed-magic. You could search for you particular monitoring stanza and add the blacklist line underneath it and then restart splunk. This should help: &lt;A href="http://stackoverflow.com/questions/15559359/insert-line-after-first-match-using-sed"&gt;http://stackoverflow.com/questions/15559359/insert-line-after-first-match-using-sed&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 07:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-blacklist-in-inputs-conf-file-using-Linux-Command/m-p/208716#M41117</guid>
      <dc:creator>lcrielaa</dc:creator>
      <dc:date>2015-09-10T07:41:13Z</dc:date>
    </item>
  </channel>
</rss>

