<?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 can I have multiple apps hosts and inputs consolidated into single serverclass.conf &amp; inputs.conf.dist? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-have-multiple-apps-hosts-and-inputs-consolidated-into/m-p/373923#M67774</link>
    <description>&lt;P&gt;Thanks Pradeep, i had used something similar!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2018 15:01:07 GMT</pubDate>
    <dc:creator>newbie2tech</dc:creator>
    <dc:date>2018-08-17T15:01:07Z</dc:date>
    <item>
      <title>How can I have multiple apps hosts and inputs consolidated into single serverclass.conf &amp; inputs.conf.dist?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-have-multiple-apps-hosts-and-inputs-consolidated-into/m-p/373921#M67772</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;We have a cluster which has multiple apps under it. I am working on boarding the apps logs onto splunk.&lt;/P&gt;

&lt;P&gt;So far we have been using individual apps which had their own serverclass.conf and inputs.conf.dist,index and role and we built it that way since now we are consolidating all the apps in a cluster to utilize same index and roles but have different hosts/inputs .&lt;/P&gt;

&lt;P&gt;Question - How can i have hosts and inputs of the 2 apps[ hosts n inputs are completely different] specified in single serverclass.conf and inputs.conf.dist? does it have to be different stanzas or something along those lines?&lt;/P&gt;

&lt;P&gt;Probably I can whitelist all hosts under serverclass.conf and all inputs in inputs.conf.dist and they get pushed out such that all the hosts [app1 &amp;amp; app2] will have all the configs [app1+app2], but this does not look efficient and I believe there is a better way to do it.&lt;/P&gt;

&lt;P&gt;In our splunk environment deployment is automated i.e. by deployment server, separate deployers for search head cluster and indexer cluster.&lt;/P&gt;

&lt;P&gt;Any guidance is appreciated, thanks in advance.&lt;/P&gt;

&lt;P&gt;Please let me know if more details are needed.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; App1
    host1-app1.com
    host2-app1.com

    /app/services/weblog.log
    /app/services/weberror.log


    App2
    host1-app2.com
    host2-app2.com

    /app/dyn/system.log
    /app/dyn/systemerror.log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 May 2018 15:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-have-multiple-apps-hosts-and-inputs-consolidated-into/m-p/373921#M67772</guid>
      <dc:creator>newbie2tech</dc:creator>
      <dc:date>2018-05-02T15:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have multiple apps hosts and inputs consolidated into single serverclass.conf &amp; inputs.conf.dist?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-have-multiple-apps-hosts-and-inputs-consolidated-into/m-p/373922#M67773</link>
      <description>&lt;P&gt;Yes, you can use one serverclass.conf and create multiple server classes. Each stanza is a separate server class&lt;/P&gt;

&lt;P&gt;Example below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:My_App1]
restartSplunkd = true
whitelist.0=host1
whitelist.1=host2
whitelist.2=host3
[serverClass:My_App1:app:my_inputs_1]

[serverClass:My_App2]
restartSplunkd = true
whitelist.0=host5
whitelist.1=host6
[serverClass:My_App2:app:my_inputs_2] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 May 2018 16:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-have-multiple-apps-hosts-and-inputs-consolidated-into/m-p/373922#M67773</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2018-05-02T16:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have multiple apps hosts and inputs consolidated into single serverclass.conf &amp; inputs.conf.dist?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-have-multiple-apps-hosts-and-inputs-consolidated-into/m-p/373923#M67774</link>
      <description>&lt;P&gt;Thanks Pradeep, i had used something similar!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 15:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-have-multiple-apps-hosts-and-inputs-consolidated-into/m-p/373923#M67774</guid>
      <dc:creator>newbie2tech</dc:creator>
      <dc:date>2018-08-17T15:01:07Z</dc:date>
    </item>
  </channel>
</rss>

