<?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 Question about Serverclass.conf ? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Question-about-Serverclass-conf/m-p/59200#M1963</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I want to use deployment server to separate 2 kind of system machine: Windows 2000 and Windows 2003.&lt;BR /&gt;
In the deployment server, i have serverclass.conf as:&lt;/P&gt;

&lt;P&gt;[global]&lt;BR /&gt;
whitelist.0 = *&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine1:app:deploy_input1]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine1:app:deploy_output1]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine1:app:deploy_perfmon1]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine1]&lt;/P&gt;

&lt;P&gt;filterType = blacklist&lt;/P&gt;

&lt;P&gt;whitelist.0 = client20_*&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine2:app:deploy_input2]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine2:app:deploy_output2]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine2:app:deploy_perfmon2]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine2]&lt;/P&gt;

&lt;P&gt;filterType = blacklist&lt;/P&gt;

&lt;P&gt;whitelist.0 = client23_*&lt;/P&gt;

&lt;P&gt;And in the Wins 2003 client machine, i configured deploymentclient.conf as:&lt;/P&gt;

&lt;P&gt;[deployment-client]&lt;/P&gt;

&lt;P&gt;clientName=client23_01&lt;/P&gt;

&lt;P&gt;phoneHomeIntervalInSecs=20&lt;/P&gt;

&lt;P&gt;[target-broker:deploymentServer]&lt;/P&gt;

&lt;P&gt;targetUri = splunkserver02:8089&lt;/P&gt;

&lt;P&gt;I saw that this client downloaded all the applications in 2 classes, totally 6 apps enumerated above. Can you tell me what wrong i got ?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2012 15:54:34 GMT</pubDate>
    <dc:creator>sieutruc</dc:creator>
    <dc:date>2012-09-13T15:54:34Z</dc:date>
    <item>
      <title>Question about Serverclass.conf ?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-about-Serverclass-conf/m-p/59200#M1963</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I want to use deployment server to separate 2 kind of system machine: Windows 2000 and Windows 2003.&lt;BR /&gt;
In the deployment server, i have serverclass.conf as:&lt;/P&gt;

&lt;P&gt;[global]&lt;BR /&gt;
whitelist.0 = *&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine1:app:deploy_input1]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine1:app:deploy_output1]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine1:app:deploy_perfmon1]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine1]&lt;/P&gt;

&lt;P&gt;filterType = blacklist&lt;/P&gt;

&lt;P&gt;whitelist.0 = client20_*&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine2:app:deploy_input2]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine2:app:deploy_output2]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine2:app:deploy_perfmon2]&lt;/P&gt;

&lt;P&gt;stateOnClient = enabled&lt;/P&gt;

&lt;P&gt;restartSplunkd = true&lt;/P&gt;

&lt;P&gt;[serverClass:testMachine2]&lt;/P&gt;

&lt;P&gt;filterType = blacklist&lt;/P&gt;

&lt;P&gt;whitelist.0 = client23_*&lt;/P&gt;

&lt;P&gt;And in the Wins 2003 client machine, i configured deploymentclient.conf as:&lt;/P&gt;

&lt;P&gt;[deployment-client]&lt;/P&gt;

&lt;P&gt;clientName=client23_01&lt;/P&gt;

&lt;P&gt;phoneHomeIntervalInSecs=20&lt;/P&gt;

&lt;P&gt;[target-broker:deploymentServer]&lt;/P&gt;

&lt;P&gt;targetUri = splunkserver02:8089&lt;/P&gt;

&lt;P&gt;I saw that this client downloaded all the applications in 2 classes, totally 6 apps enumerated above. Can you tell me what wrong i got ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 15:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-about-Serverclass-conf/m-p/59200#M1963</guid>
      <dc:creator>sieutruc</dc:creator>
      <dc:date>2012-09-13T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Serverclass.conf ?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-about-Serverclass-conf/m-p/59201#M1964</link>
      <description>&lt;P&gt;I would change the way you're using whitelists/blacklists as your config is very permissive by default.  For example, the global stanza whitelists everything that isn't explicitly blacklisted in a more specific stanza.  In your serverclass stanzas, the filtertype=blacklist means that the default state is to match unless told otherwise.  (So mistakes in your filters mean the app goes out to a wider than intended audience)&lt;/P&gt;

&lt;P&gt;I would use the following for your serverclass.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[global]
blacklist.0 = *

[serverClass:testMachine1]
filterType = whitelist
whitelist.0 = client20_*
stateOnClient = enabled
restartSplunkd = true
[serverClass:testMachine1:app:deploy_input1]
[serverClass:testMachine1:app:deploy_output1]
[serverClass:testMachine1:app:deploy_perfmon1]

[serverClass:testMachine2]
filterType = whitelist
whitelist.0 = client23_*
stateOnClient = enabled
restartSplunkd = true
[serverClass:testMachine2:app:deploy_input2]
[serverClass:testMachine2:app:deploy_output2]
[serverClass:testMachine2:app:deploy_perfmon2]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This means that anything that talks to the deployment server starts out as blacklisted.  Then the serverClass stanzas also say the default state is blacklisted unless they match the whitelist.0 filter.  I also moved the stateOnClient and restartSplunkd lines to the serverClass as they're all defined the same.  But you can keep them under the app stanzas if you want to specify them individually.  &lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 17:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-about-Serverclass-conf/m-p/59201#M1964</guid>
      <dc:creator>emiller42</dc:creator>
      <dc:date>2012-09-13T17:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Serverclass.conf ?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Question-about-Serverclass-conf/m-p/59202#M1965</link>
      <description>&lt;UL&gt;
&lt;LI&gt;I realize this is old, but others might find it useful.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;you might find a condensed version more supportable.  We use this method to avoid all the redundant settings, and it ends up being more readable, I think.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# use these defaults
[global]
filterType = whitelist
stateOnClient = enabled
restartSplunkd = true

# class definitions
[serverClass:win2000]
whitelist.0 = client20_*

[serverClass:win2003]
whitelist.0 = client23_*

# app deployments
[serverClass:win2000:app:deploy_input1]
[serverClass:win2000:app:deploy_output1]
[serverClass:win2000:app:deploy_perfmon1]

[serverClass:win2003:app:deploy_input2]
[serverClass:win2003:app:deploy_output2]
[serverClass:win2003:app:deploy_perfmon2]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Aug 2016 15:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Question-about-Serverclass-conf/m-p/59202#M1965</guid>
      <dc:creator>jhedgpeth</dc:creator>
      <dc:date>2016-08-15T15:19:34Z</dc:date>
    </item>
  </channel>
</rss>

