<?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 do i configure serverclass.conf for a deployment server? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9969#M29</link>
    <description>&lt;P&gt;Here's an example of a serverclass.conf with various hosts making connections and 2 different apps, a mail_server app and win_clients app. 
In this examples only hosts starting with the hostname of host_123 or host_456 will get the "win" app.
While hosts starting with the hostname of mail will get the "mail" app.&lt;/P&gt;

&lt;P&gt;[global]&lt;BR /&gt;
whitelist.0=host_123*&lt;BR /&gt;
whitelist.1=host_456*&lt;BR /&gt;
whitelist.2=mail*&lt;BR /&gt;
whitelist.3=host_abc*&lt;BR /&gt;
whitelist.4=host_xyz*  &lt;/P&gt;

&lt;P&gt;[serverClass:win_clients]&lt;BR /&gt;
whitelist.0=host_123*&lt;BR /&gt;
whitelist.1=host_456*&lt;BR /&gt;
blacklist.1=mail*&lt;BR /&gt;
blacklist.2=host_abc*&lt;BR /&gt;
blacklist.3=host_xyz*  &lt;/P&gt;

&lt;P&gt;[serverClass:win_clients:app:win]&lt;BR /&gt;
stateOnClient=enabled&lt;BR /&gt;
restartSplunkd = true  &lt;/P&gt;

&lt;P&gt;[serverClass:mail_servers]&lt;BR /&gt;
whitelist.0=mail*&lt;BR /&gt;
blacklist.0=host_123*&lt;BR /&gt;
blacklist.1=host_456*&lt;BR /&gt;
blacklist.2=host_abc*&lt;BR /&gt;
blacklist.3=host_xyz*  &lt;/P&gt;

&lt;P&gt;[serverClass:mail_servers:app:mail]&lt;BR /&gt;
stateOnClient=enabled&lt;BR /&gt;
restartSplunkd = true  &lt;/P&gt;

&lt;P&gt;The apps directories by default will reside on the deployment server in $SPLUNK_HOME/deployment-apps, so any config files should be placed there to be deployed to clients.
Once deployed on the clients they will reside on $SPLUNK_HOME/apps&lt;/P&gt;

&lt;P&gt;Many more options can be found in
&lt;A href="http://www.splunk.com/base/Documentation/4.0.9/Admin/Definedeploymentclasses" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.0.9/Admin/Definedeploymentclasses&lt;/A&gt;&lt;BR /&gt;
and
&lt;A href="http://www.splunk.com/base/Documentation/4.0.9/Admin/Serverclassconf" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.0.9/Admin/Serverclassconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2010 09:45:47 GMT</pubDate>
    <dc:creator>Chris_R_</dc:creator>
    <dc:date>2010-03-03T09:45:47Z</dc:date>
    <item>
      <title>How do i configure serverclass.conf for a deployment server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9968#M28</link>
      <description>&lt;P&gt;How do i configure a serverclass.conf for a deployment server, with multiple apps
based on host connections?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9968#M28</guid>
      <dc:creator>Chris_R_</dc:creator>
      <dc:date>2010-03-03T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do i configure serverclass.conf for a deployment server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9969#M29</link>
      <description>&lt;P&gt;Here's an example of a serverclass.conf with various hosts making connections and 2 different apps, a mail_server app and win_clients app. 
In this examples only hosts starting with the hostname of host_123 or host_456 will get the "win" app.
While hosts starting with the hostname of mail will get the "mail" app.&lt;/P&gt;

&lt;P&gt;[global]&lt;BR /&gt;
whitelist.0=host_123*&lt;BR /&gt;
whitelist.1=host_456*&lt;BR /&gt;
whitelist.2=mail*&lt;BR /&gt;
whitelist.3=host_abc*&lt;BR /&gt;
whitelist.4=host_xyz*  &lt;/P&gt;

&lt;P&gt;[serverClass:win_clients]&lt;BR /&gt;
whitelist.0=host_123*&lt;BR /&gt;
whitelist.1=host_456*&lt;BR /&gt;
blacklist.1=mail*&lt;BR /&gt;
blacklist.2=host_abc*&lt;BR /&gt;
blacklist.3=host_xyz*  &lt;/P&gt;

&lt;P&gt;[serverClass:win_clients:app:win]&lt;BR /&gt;
stateOnClient=enabled&lt;BR /&gt;
restartSplunkd = true  &lt;/P&gt;

&lt;P&gt;[serverClass:mail_servers]&lt;BR /&gt;
whitelist.0=mail*&lt;BR /&gt;
blacklist.0=host_123*&lt;BR /&gt;
blacklist.1=host_456*&lt;BR /&gt;
blacklist.2=host_abc*&lt;BR /&gt;
blacklist.3=host_xyz*  &lt;/P&gt;

&lt;P&gt;[serverClass:mail_servers:app:mail]&lt;BR /&gt;
stateOnClient=enabled&lt;BR /&gt;
restartSplunkd = true  &lt;/P&gt;

&lt;P&gt;The apps directories by default will reside on the deployment server in $SPLUNK_HOME/deployment-apps, so any config files should be placed there to be deployed to clients.
Once deployed on the clients they will reside on $SPLUNK_HOME/apps&lt;/P&gt;

&lt;P&gt;Many more options can be found in
&lt;A href="http://www.splunk.com/base/Documentation/4.0.9/Admin/Definedeploymentclasses" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.0.9/Admin/Definedeploymentclasses&lt;/A&gt;&lt;BR /&gt;
and
&lt;A href="http://www.splunk.com/base/Documentation/4.0.9/Admin/Serverclassconf" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.0.9/Admin/Serverclassconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2010 09:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9969#M29</guid>
      <dc:creator>Chris_R_</dc:creator>
      <dc:date>2010-03-03T09:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do i configure serverclass.conf for a deployment server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9970#M30</link>
      <description>&lt;P&gt;The following is a good example. It shows use of a few features:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Using the &lt;CODE&gt;[global]&lt;/CODE&gt; section to set global defaults&lt;/LI&gt;
&lt;LI&gt;Using machine types to select classes&lt;/LI&gt;
&lt;LI&gt;Layering multiple classes and multiple apps&lt;/LI&gt;
&lt;LI&gt;Using appFile to push out an app from a different name&lt;/LI&gt;
&lt;LI&gt;Removing apps by pushing out &lt;CODE&gt;emptyapp&lt;/CODE&gt;, which should be an app folder that contains only an empty &lt;CODE&gt;local&lt;/CODE&gt; folder&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;serverclass.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[global]
stateOnClient = enabled
blacklist.0=*
continueMatching = true

[serverClass:base]
whitelist.0=*
[serverClass:base:app:myapp1_props]


[serverClass:forwarders]
whitelist.0=*
[serverClass:forwarders:app:forwarder_base]
restartSplunkd = true
[serverClass:forwarders:app:sample_app]
stateOnClient = disabled
[serverClass:forwarders:app:gettingstarted]
stateOnClient = disabled

[serverClass:winforwarders]
machineTypes = windows-intel,windows-x64
[serverClass:winforwarders:app:SplunkLightForwarder-win]
restartSplunkd = true
[serverClass:winforwarders:app:wininputs]
restartSplunkd = true
[serverClass:winforwarders:app:SplunkLightForwarder]
appFile = emptyapp
stateOnClient = disabled


[serverClass:linforwarders]
machineTypes = linux-i686,linux-x86_64
[serverClass:linforwarders:app:SplunkLightForwarder-oth]
restartSplunkd = true
[serverClass:linforwarders:app:SplunkLightForwarder]
stateOnClient = disabled
restartSplunkd = true

[serverClass:myapp1]
whitelist.0=xxx.*
whitelist.1=yyy.*
[serverClass:myapp1:app:myapp1_inputs]
restartSplunkd = true

[serverClass:myapp2]
whitelist.0=10.11.12.*
whitelist.1=10.11.13.*
[serverClass:myapp2:app:myapp2_inputs]
restartSplunkd = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Mar 2010 23:30:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9970#M30</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-03-03T23:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do i configure serverclass.conf for a deployment server?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9971#M31</link>
      <description>&lt;P&gt;I setup a brand new splunk box, and I go to forwarder managment and I get "there is an error in your serverclass.conf which is preventing deployment server from initializing. Please see your serverclass.conf.spec file for more information."   Thought this might help but from reading above I dont' don't know how to create a a serverclass.conf or where it goes.  What should it be for a new blank server?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 22:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-i-configure-serverclass-conf-for-a-deployment-server/m-p/9971#M31</guid>
      <dc:creator>mendesjo</dc:creator>
      <dc:date>2015-10-09T22:39:16Z</dc:date>
    </item>
  </channel>
</rss>

