<?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 deployment question regarding apps in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44238#M1289</link>
    <description>&lt;P&gt;I want to setup my deployment server to server two different configuration files based on hostname.&lt;/P&gt;

&lt;P&gt;I have setup the following serverclass.conf on the deployment server.&lt;/P&gt;

&lt;P&gt;[global]&lt;/P&gt;

&lt;P&gt;[serverClass:webservers]&lt;BR /&gt;
whitelist.0=host1.us-west-1.compute.amazonaws.com&lt;BR /&gt;
[serverClass:webservers:app:web]&lt;/P&gt;

&lt;P&gt;[serverClass:proxies]&lt;BR /&gt;
whitelist.0=host2.us-west-1.compute.amazonaws.com&lt;BR /&gt;
[serverClass:proxies:app:proxy]&lt;/P&gt;

&lt;P&gt;I believe I have created the match and the destination for where the forwarder picks up it app from: /$SPLUNK_HOME/etc/deployment-apps/webservers&lt;/P&gt;

&lt;P&gt;The app directory should now contain the configuration files i need to ingest the required logfiles and forward them to the correct index i.e. inputs.conf and outputs.conf&lt;/P&gt;

&lt;P&gt;If all I need the forwarder to do is to ingest some specific log files and have them forwarded to the a specific index, I only require an inputs.conf and outputs.conf file in this app directory.&lt;/P&gt;

&lt;P&gt;ie.  I have created: /$SPLUNK_HOME/etc/deployment-apps/webservers/inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor://opt/log/www1]&lt;BR /&gt;
sourcetype = apache&lt;BR /&gt;
index = web&lt;BR /&gt;
[monitor://opt/log/www2]&lt;BR /&gt;
sourcetype = apache&lt;BR /&gt;
index = web&lt;BR /&gt;
[monitor://opt/log/www3]&lt;BR /&gt;
sourcetype = apache&lt;BR /&gt;
index = web&lt;/P&gt;

&lt;P&gt;And &lt;/P&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;P&gt;[tcpout:group1]&lt;BR /&gt;
index1.us-west-1.compute.amazonaws.com:9997,index2.compute.amazonaws.com:9997&lt;/P&gt;

&lt;P&gt;I have reloaded my deployment server and clients, now I see the following when i run ./splunk list deploy-clients:&lt;/P&gt;

&lt;P&gt;Deployment client: ip=10.171.2.174, dns=forwarder1, hostname=ip-10-171-2-174, mgmt=8089, build=128297, name=78A0ADBD-7476-4C9D-9ABF-66BEB98670D6, id=connection_10.171.2.174_8089_ip-10-171-2-174.us-west-1.compute.internal_ip-10-171-2-174_78A0ADBD-7476-4C9D-9ABF-66BEB98670D6, utsname=linux-x86_64&lt;BR /&gt;
                 utsname:       linux-x86_64&lt;BR /&gt;
                 name:       78A0ADBD-7476-4C9D-9ABF-66BEB98670D6&lt;BR /&gt;
                 ip:       10.171.2.174&lt;BR /&gt;
                 hostname:       ip-10-171-2-174&lt;BR /&gt;
                 build:       128297&lt;BR /&gt;
                 dns:       ip-10-171-2-174.us-west-1.compute.internal&lt;BR /&gt;
                 mgmt:       8089&lt;BR /&gt;
                 phoneHomeTime:       Sat Aug 25 07:59:33 2012&lt;BR /&gt;
                 id:       connection_10.171.2.174_8089_ip-10-171-2-174.us-west-1.compute.internal_ip-10-171-2-174_78A0ADBD-7476-4C9D-9ABF-66BEB98670D6&lt;/P&gt;

&lt;P&gt;When I check the/opt/splunkforwarder/etc/system/local/inputs.conf file on the forwarder, it appears not to have changed at all.  Shouldn't it have updated with the new inputs.conf configuration from the deployment server?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:20:06 GMT</pubDate>
    <dc:creator>edchow</dc:creator>
    <dc:date>2020-09-28T12:20:06Z</dc:date>
    <item>
      <title>deployment question regarding apps</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44238#M1289</link>
      <description>&lt;P&gt;I want to setup my deployment server to server two different configuration files based on hostname.&lt;/P&gt;

&lt;P&gt;I have setup the following serverclass.conf on the deployment server.&lt;/P&gt;

&lt;P&gt;[global]&lt;/P&gt;

&lt;P&gt;[serverClass:webservers]&lt;BR /&gt;
whitelist.0=host1.us-west-1.compute.amazonaws.com&lt;BR /&gt;
[serverClass:webservers:app:web]&lt;/P&gt;

&lt;P&gt;[serverClass:proxies]&lt;BR /&gt;
whitelist.0=host2.us-west-1.compute.amazonaws.com&lt;BR /&gt;
[serverClass:proxies:app:proxy]&lt;/P&gt;

&lt;P&gt;I believe I have created the match and the destination for where the forwarder picks up it app from: /$SPLUNK_HOME/etc/deployment-apps/webservers&lt;/P&gt;

&lt;P&gt;The app directory should now contain the configuration files i need to ingest the required logfiles and forward them to the correct index i.e. inputs.conf and outputs.conf&lt;/P&gt;

&lt;P&gt;If all I need the forwarder to do is to ingest some specific log files and have them forwarded to the a specific index, I only require an inputs.conf and outputs.conf file in this app directory.&lt;/P&gt;

&lt;P&gt;ie.  I have created: /$SPLUNK_HOME/etc/deployment-apps/webservers/inputs.conf&lt;/P&gt;

&lt;P&gt;[monitor://opt/log/www1]&lt;BR /&gt;
sourcetype = apache&lt;BR /&gt;
index = web&lt;BR /&gt;
[monitor://opt/log/www2]&lt;BR /&gt;
sourcetype = apache&lt;BR /&gt;
index = web&lt;BR /&gt;
[monitor://opt/log/www3]&lt;BR /&gt;
sourcetype = apache&lt;BR /&gt;
index = web&lt;/P&gt;

&lt;P&gt;And &lt;/P&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;P&gt;[tcpout:group1]&lt;BR /&gt;
index1.us-west-1.compute.amazonaws.com:9997,index2.compute.amazonaws.com:9997&lt;/P&gt;

&lt;P&gt;I have reloaded my deployment server and clients, now I see the following when i run ./splunk list deploy-clients:&lt;/P&gt;

&lt;P&gt;Deployment client: ip=10.171.2.174, dns=forwarder1, hostname=ip-10-171-2-174, mgmt=8089, build=128297, name=78A0ADBD-7476-4C9D-9ABF-66BEB98670D6, id=connection_10.171.2.174_8089_ip-10-171-2-174.us-west-1.compute.internal_ip-10-171-2-174_78A0ADBD-7476-4C9D-9ABF-66BEB98670D6, utsname=linux-x86_64&lt;BR /&gt;
                 utsname:       linux-x86_64&lt;BR /&gt;
                 name:       78A0ADBD-7476-4C9D-9ABF-66BEB98670D6&lt;BR /&gt;
                 ip:       10.171.2.174&lt;BR /&gt;
                 hostname:       ip-10-171-2-174&lt;BR /&gt;
                 build:       128297&lt;BR /&gt;
                 dns:       ip-10-171-2-174.us-west-1.compute.internal&lt;BR /&gt;
                 mgmt:       8089&lt;BR /&gt;
                 phoneHomeTime:       Sat Aug 25 07:59:33 2012&lt;BR /&gt;
                 id:       connection_10.171.2.174_8089_ip-10-171-2-174.us-west-1.compute.internal_ip-10-171-2-174_78A0ADBD-7476-4C9D-9ABF-66BEB98670D6&lt;/P&gt;

&lt;P&gt;When I check the/opt/splunkforwarder/etc/system/local/inputs.conf file on the forwarder, it appears not to have changed at all.  Shouldn't it have updated with the new inputs.conf configuration from the deployment server?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44238#M1289</guid>
      <dc:creator>edchow</dc:creator>
      <dc:date>2020-09-28T12:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: deployment question regarding apps</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44239#M1290</link>
      <description>&lt;P&gt;Looking at your config, you have defined the app to be deployed as "&lt;CODE&gt;web&lt;/CODE&gt;" but your config is in a folder called "&lt;CODE&gt;webservers&lt;/CODE&gt;"&lt;/P&gt;

&lt;P&gt;Rename the folder or change the serverclass.conf to be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:webservers] 
whitelist.0=host1.us-west-1.compute.amazonaws.com 
[serverClass:webservers:app:webservers]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Aug 2012 08:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44239#M1290</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2012-08-25T08:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: deployment question regarding apps</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44240#M1291</link>
      <description>&lt;P&gt;Besides what BobM pointed out, the created App will not be put in /opt/splunkforwarder/etc/system/local/ it will be put in /opt/splunkforwarder/etc/app/&lt;APP name=""&gt;.  Second, you do notice/know that your whitelist.0 is not matching anything being found from the forwarder connecting to your deployment server?&lt;/APP&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2012 12:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44240#M1291</guid>
      <dc:creator>jgedeon120</dc:creator>
      <dc:date>2012-08-25T12:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: deployment question regarding apps</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44241#M1292</link>
      <description>&lt;P&gt;Thanks for that, got a bit confused with folder names and app names.&lt;/P&gt;

&lt;P&gt;Thanks Bobm.&lt;/P&gt;

&lt;P&gt;The whitelist was OK, sorry I edited it to avoid publishing too much information.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2012 14:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/deployment-question-regarding-apps/m-p/44241#M1292</guid>
      <dc:creator>edchow</dc:creator>
      <dc:date>2012-08-25T14:04:32Z</dc:date>
    </item>
  </channel>
</rss>

