<?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: different deployment dir for same app in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/different-deployment-dir-for-same-app/m-p/26091#M633</link>
    <description>&lt;P&gt;I believe you could create a new class for each grouping of clients, and then create a new add-on under deployment-apps for each.  The add-ons would simply include the inputs.conf for that group:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;- deployment_apps
   - unix
   - unix_input_group1
      - default
          - inputs.conf
   - unix_input_group2
      - default
          - inputs.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You would leave all inputs disabled in the main unix app, and instead have them setup in the add-ons for the class.  A couple of caveats though; the standard unix app inputs.conf has script stanzas like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/iostat.sh]
interval = 60
sourcetype = iostat
source = iostat
index = os
disabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I imagine you'd have to modify the stanza to the full path (i.e. [script://$SPLUNK_HOME/etc/apps/unix/bin/iostat.sh]) because the referenced scripts aren't in your new app's bin directory.  Also, I don't imagine that stanzas in your custom add-ons would properly override those in the unix app.  In other words, if you have a unix/default/inputs.conf with this stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
_whitelist=(\.log|log$|messages$|mesg$|cron$|acpid$|\.out)
_blacklist=(lastlog)
index=os
disabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;best practice to enable it would be to create a unix/local/inputs.conf like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I don't believe you could enable an input in that way if you're working off of a unix/default/inputs.conf in another app's directory (though I'm not positive of that, so you may want to give it a try).  So, you probably need to just copy the entire unix/default/inputs.conf to your new apps, modify script paths and intervals.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2011 22:57:27 GMT</pubDate>
    <dc:creator>mw</dc:creator>
    <dc:date>2011-06-09T22:57:27Z</dc:date>
    <item>
      <title>different deployment dir for same app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/different-deployment-dir-for-same-app/m-p/26090#M632</link>
      <description>&lt;P&gt;I have several hosts I want to deploy the same app to.  I would like to use a different local/inputs.conf for different clients.  My reasoning is that I want to turn some scripts on for some clients and not for others, or change intervals, etc.  &lt;/P&gt;

&lt;P&gt;I'm currently using the standard "unix" app.  I suppose I could create a new app, but it would be a lot easier to be able to specify different options for the same app.  Is there any way to do this?&lt;/P&gt;

&lt;P&gt;Here's a copy of my serverclass.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[global]&lt;BR /&gt;
blacklist.0=*&lt;BR /&gt;
continueMatching = true&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;[serverClass:my_clients]&lt;BR /&gt;
whitelist.0=host1.example.com&lt;BR /&gt;
whitelist.1=host2.example.com&lt;BR /&gt;
whitelist.1=host3.example.com&lt;/P&gt;

&lt;P&gt;[serverClass:my_clients:app:unix]&lt;BR /&gt;
stateOnClient=enabled&lt;BR /&gt;
restartSplunkd=true&lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2011 17:52:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/different-deployment-dir-for-same-app/m-p/26090#M632</guid>
      <dc:creator>dinisco</dc:creator>
      <dc:date>2011-06-09T17:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: different deployment dir for same app</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/different-deployment-dir-for-same-app/m-p/26091#M633</link>
      <description>&lt;P&gt;I believe you could create a new class for each grouping of clients, and then create a new add-on under deployment-apps for each.  The add-ons would simply include the inputs.conf for that group:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;- deployment_apps
   - unix
   - unix_input_group1
      - default
          - inputs.conf
   - unix_input_group2
      - default
          - inputs.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You would leave all inputs disabled in the main unix app, and instead have them setup in the add-ons for the class.  A couple of caveats though; the standard unix app inputs.conf has script stanzas like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/iostat.sh]
interval = 60
sourcetype = iostat
source = iostat
index = os
disabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I imagine you'd have to modify the stanza to the full path (i.e. [script://$SPLUNK_HOME/etc/apps/unix/bin/iostat.sh]) because the referenced scripts aren't in your new app's bin directory.  Also, I don't imagine that stanzas in your custom add-ons would properly override those in the unix app.  In other words, if you have a unix/default/inputs.conf with this stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
_whitelist=(\.log|log$|messages$|mesg$|cron$|acpid$|\.out)
_blacklist=(lastlog)
index=os
disabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;best practice to enable it would be to create a unix/local/inputs.conf like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log]
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I don't believe you could enable an input in that way if you're working off of a unix/default/inputs.conf in another app's directory (though I'm not positive of that, so you may want to give it a try).  So, you probably need to just copy the entire unix/default/inputs.conf to your new apps, modify script paths and intervals.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2011 22:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/different-deployment-dir-for-same-app/m-p/26091#M633</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-06-09T22:57:27Z</dc:date>
    </item>
  </channel>
</rss>

