<?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 blacklist two different hosts in inputs.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-two-different-hosts-in-inputs-conf/m-p/273824#M52518</link>
    <description>&lt;P&gt;Hi All, Can any one guide me on how to blacklist two different host in the same inputs.conf files in Heavy Forwarder (HF) instance?&lt;/P&gt;

&lt;P&gt;Currently we have the below inputs.conf set and in which we have already blacklisted a host but I want to add another host along with the below host, so that the logs from this host are not indexed in the same indexer.&lt;/P&gt;

&lt;P&gt;example: want to blacklist sep01 logs from this path /opt/syslogs/generic/sep01/Sep01.log  in the below inputs.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/syslogs/generic/.../*.log]
sourcetype = syslog
host_segment = 4
blacklist = dxx*lxx*
index=unix_svrs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly guide me on this to fix this problem. &lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2016 17:29:35 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2016-12-07T17:29:35Z</dc:date>
    <item>
      <title>How to blacklist two different hosts in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-two-different-hosts-in-inputs-conf/m-p/273824#M52518</link>
      <description>&lt;P&gt;Hi All, Can any one guide me on how to blacklist two different host in the same inputs.conf files in Heavy Forwarder (HF) instance?&lt;/P&gt;

&lt;P&gt;Currently we have the below inputs.conf set and in which we have already blacklisted a host but I want to add another host along with the below host, so that the logs from this host are not indexed in the same indexer.&lt;/P&gt;

&lt;P&gt;example: want to blacklist sep01 logs from this path /opt/syslogs/generic/sep01/Sep01.log  in the below inputs.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/syslogs/generic/.../*.log]
sourcetype = syslog
host_segment = 4
blacklist = dxx*lxx*
index=unix_svrs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly guide me on this to fix this problem. &lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 17:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-two-different-hosts-in-inputs-conf/m-p/273824#M52518</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-12-07T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to blacklist two different hosts in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-two-different-hosts-in-inputs-conf/m-p/273825#M52519</link>
      <description>&lt;P&gt;The &lt;CODE&gt;blacklist&lt;/CODE&gt; attribute takes a regular expression so you could try something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist = (dxx*lxx|.*\/sep01\/)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Dec 2016 17:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-blacklist-two-different-hosts-in-inputs-conf/m-p/273825#M52519</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-12-07T17:50:43Z</dc:date>
    </item>
  </channel>
</rss>

