<?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 Blacklist help in serverclass.conf in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59874#M1974</link>
    <description>&lt;P&gt;&lt;CODE&gt;I have a set of servers that following a naming scheme like ddpamq-la-c9000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;I want all servers that match ddpamq-* to get the test-fwd app except for a select few.&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;None of the servers listed in the blacklist settings below seem to work and the app still goes to them&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[global]&lt;BR /&gt;
blacklist.0 = *&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[serverClass:test-fwd]&lt;BR /&gt;
filterType = whitelist&lt;BR /&gt;
whitelist.0 = ddpamq-*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[serverClass:test-fwd:app:test-fwd]&lt;BR /&gt;
filterType = whitelist&lt;BR /&gt;
whitelist.0 = ddpamq-nj-*&lt;BR /&gt;
whitelist.1 = ddpamq-la-*&lt;BR /&gt;
blacklist.0 = ddpamq-la-c007*&lt;BR /&gt;
blacklist.1 = ddpamq-la-c008*&lt;BR /&gt;
blacklist.2 = ddpamq-nj-c007*&lt;BR /&gt;
blacklist.3 = ddpamq-nj-c008*&lt;BR /&gt;
blacklist.4 = ddpamq-la-c301*&lt;BR /&gt;
repositoryLocation = /opt/splunk/etc/deployment-apps&lt;BR /&gt;
stateOnClient = enabled&lt;BR /&gt;
restartSplunkd = True&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2013 15:44:50 GMT</pubDate>
    <dc:creator>cramasta</dc:creator>
    <dc:date>2013-06-11T15:44:50Z</dc:date>
    <item>
      <title>Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59874#M1974</link>
      <description>&lt;P&gt;&lt;CODE&gt;I have a set of servers that following a naming scheme like ddpamq-la-c9000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;I want all servers that match ddpamq-* to get the test-fwd app except for a select few.&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;None of the servers listed in the blacklist settings below seem to work and the app still goes to them&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[global]&lt;BR /&gt;
blacklist.0 = *&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[serverClass:test-fwd]&lt;BR /&gt;
filterType = whitelist&lt;BR /&gt;
whitelist.0 = ddpamq-*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[serverClass:test-fwd:app:test-fwd]&lt;BR /&gt;
filterType = whitelist&lt;BR /&gt;
whitelist.0 = ddpamq-nj-*&lt;BR /&gt;
whitelist.1 = ddpamq-la-*&lt;BR /&gt;
blacklist.0 = ddpamq-la-c007*&lt;BR /&gt;
blacklist.1 = ddpamq-la-c008*&lt;BR /&gt;
blacklist.2 = ddpamq-nj-c007*&lt;BR /&gt;
blacklist.3 = ddpamq-nj-c008*&lt;BR /&gt;
blacklist.4 = ddpamq-la-c301*&lt;BR /&gt;
repositoryLocation = /opt/splunk/etc/deployment-apps&lt;BR /&gt;
stateOnClient = enabled&lt;BR /&gt;
restartSplunkd = True&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 15:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59874#M1974</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-06-11T15:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59875#M1975</link>
      <description>&lt;P&gt;The whitelist and blacklist items are PCRE regexs, with &lt;CODE&gt;*&lt;/CODE&gt; being mapped to &lt;CODE&gt;".*"&lt;/CODE&gt;. This then makes the regex &lt;CODE&gt;blacklist.0 = "ddpamq-.*-c.*&lt;/CODE&gt; and then won't match anything. So I would use a better formed regex, since &lt;CODE&gt;".*"&lt;/CODE&gt; matches everything.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;whitelist.0 = ddpamq-\w+-[^c]\d+&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverclassconf" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverclassconf&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 15:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59875#M1975</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-06-11T15:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59876#M1976</link>
      <description>&lt;P&gt;If the regex by the more experienced splunker above doesn't work then try using a bit of a different syntax and put the app on the bottom. That's how I have them in my environment&lt;/P&gt;

&lt;P&gt;[serverClass:test-fwd]&lt;BR /&gt;
filterType = whitelist&lt;BR /&gt;
whitelist.0 = ddpamq-*&lt;BR /&gt;
blacklist.0 = ddpamq-&lt;EM&gt;-c&lt;/EM&gt;&lt;BR /&gt;
repositoryLocation = /opt/splunk/etc/deployment-apps&lt;BR /&gt;
stateOnClient = enabled&lt;BR /&gt;
restartSplunkd = True&lt;BR /&gt;
[serverClass:test-fwd:app:test-fwd]&lt;/P&gt;

&lt;P&gt;or try to blacklist filter type&lt;/P&gt;

&lt;P&gt;[serverClass:test-fwd]&lt;BR /&gt;
filterType = blacklist&lt;BR /&gt;
blacklist.0 = ddpamq-&lt;EM&gt;-c&lt;/EM&gt;&lt;BR /&gt;
whitelist.0 = ddpamq-*&lt;BR /&gt;
repositoryLocation = /opt/splunk/etc/deployment-apps&lt;BR /&gt;
stateOnClient = enabled&lt;BR /&gt;
restartSplunkd = True&lt;BR /&gt;
[serverClass:test-fwd:app:test-fwd]&lt;/P&gt;

&lt;P&gt;or maybe it's a combination of the regex above and this&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 16:26:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59876#M1976</guid>
      <dc:creator>clymbouris</dc:creator>
      <dc:date>2013-06-11T16:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59877#M1977</link>
      <description>&lt;P&gt;Thanks I see what you did with the whitelist and how that would work. I should have provided a better example of what I needed to do though. I have hundreds of forwarders but only need to blacklist about 5 of them from the app.  If you look at my original post I updated it with an example that does a better job of showing what I'm trying to do&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59877#M1977</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-06-11T17:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59878#M1978</link>
      <description>&lt;P&gt;Try this. It sets the default as "match" (via filterType of blacklist) and then blacklists the matching servers.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[serverClass:test-fwd:app:test-fwd]&lt;BR /&gt;
filterType = blacklist&lt;BR /&gt;
blacklist.0 = ddpamq-[^-]+-c\d+&lt;BR /&gt;
repositoryLocation = /opt/splunk/etc/deployment-apps&lt;BR /&gt;
stateOnClient = enabled&lt;BR /&gt;
restartSplunkd = True&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59878#M1978</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-06-11T17:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59879#M1979</link>
      <description>&lt;P&gt;would this cause the app to get pushed to all forwarders except what matched the blacklist?  If so that wont work as there are other servers out there with different naming schemes that should not get the test-fwd app.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59879#M1979</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-06-11T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59880#M1980</link>
      <description>&lt;P&gt;In that case, if the total number of servers is manageable, I would add them explicitly.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[serverClass:test-fwd:app:test-fwd]&lt;BR /&gt;
filterType = blacklist&lt;BR /&gt;
blacklist.0 = ddpamq-nj-c9000&lt;BR /&gt;
blacklist.1 = ddpamq-ny-c9000&lt;BR /&gt;
blacklist.2 = ddpamq-pa-39d00&lt;BR /&gt;
blacklist.x = whatever&lt;BR /&gt;
repositoryLocation = /opt/splunk/etc/deployment-apps&lt;BR /&gt;
stateOnClient = enabled&lt;BR /&gt;
restartSplunkd = True&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:16:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59880#M1980</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-06-11T17:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59881#M1981</link>
      <description>&lt;P&gt;Looking at the docs it seems like I am trying to do what is listed in this example.  Not sure how what I have listed above is different then this example&lt;/P&gt;

&lt;P&gt;Example of when filterType is whitelist&lt;BR /&gt;
whitelist.0=*.splunk.com&lt;BR /&gt;
blacklist.0=printer.splunk.com&lt;BR /&gt;
blacklist.1=scanner.splunk.com&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59881#M1981</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-06-11T17:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59882#M1982</link>
      <description>&lt;P&gt;And you are reloading the deploy-server, right? &lt;CODE&gt;splunk reload deploy-server -class test-fwd&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 18:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59882#M1982</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-06-11T18:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklist help in serverclass.conf</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59883#M1983</link>
      <description>&lt;P&gt;Yes I did. What I found was that the forwarder no longer showed the test-fwd app in the apps directory but it was still forwarding the data. After restarting the forwarder the logs stopped coming in.  Seems like the restartSplunkd = True setting didnt take place once the app was removed &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;  Thanks for the help though, I have a better understanding of how to work with blacklists now.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 19:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Blacklist-help-in-serverclass-conf/m-p/59883#M1983</guid>
      <dc:creator>cramasta</dc:creator>
      <dc:date>2013-06-11T19:45:00Z</dc:date>
    </item>
  </channel>
</rss>

