<?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 Parametrized universal forwarders in a distributed env. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parametrized-universal-forwarders-in-a-distributed-env/m-p/23278#M3662</link>
    <description>&lt;P&gt;Perhaps I'm missing out on something but I haven't found details in the Splunk documentation about how we can setup generic universal forwarders that know "magically" on what deployment client they're running on.&lt;/P&gt;

&lt;P&gt;We have a mixed environment with different breed of application servers and we'd want to centrally distribute a universal forwarder configuration that upon deployment (or later) would be intelligent enough to send log data with the correct syntax to the indexer. &lt;/P&gt;

&lt;P&gt;All I've found so far is examples where parameters are hard coded but nothing dynamic.&lt;/P&gt;

&lt;P&gt;How can we achieve this, is there a way to parametrize the forwarders during deployment (i.e. Forwarder_X will run on a Tomcat host, Forwarder_Y will run on an Orion Server host)?&lt;/P&gt;

&lt;P&gt;One idea I haven't tried is with defining different server classes. After a successful deployment of forwarders one changes the inputs.conf settings on the deployment server centrally. Then a reload of server class:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk reload deploy-server -class [server-class-name]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...would trigger an update of all forwarders and with that, we'd end up with client specific forwarders.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:09:31 GMT</pubDate>
    <dc:creator>greg0ry</dc:creator>
    <dc:date>2020-09-28T10:09:31Z</dc:date>
    <item>
      <title>Parametrized universal forwarders in a distributed env.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parametrized-universal-forwarders-in-a-distributed-env/m-p/23278#M3662</link>
      <description>&lt;P&gt;Perhaps I'm missing out on something but I haven't found details in the Splunk documentation about how we can setup generic universal forwarders that know "magically" on what deployment client they're running on.&lt;/P&gt;

&lt;P&gt;We have a mixed environment with different breed of application servers and we'd want to centrally distribute a universal forwarder configuration that upon deployment (or later) would be intelligent enough to send log data with the correct syntax to the indexer. &lt;/P&gt;

&lt;P&gt;All I've found so far is examples where parameters are hard coded but nothing dynamic.&lt;/P&gt;

&lt;P&gt;How can we achieve this, is there a way to parametrize the forwarders during deployment (i.e. Forwarder_X will run on a Tomcat host, Forwarder_Y will run on an Orion Server host)?&lt;/P&gt;

&lt;P&gt;One idea I haven't tried is with defining different server classes. After a successful deployment of forwarders one changes the inputs.conf settings on the deployment server centrally. Then a reload of server class:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk reload deploy-server -class [server-class-name]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...would trigger an update of all forwarders and with that, we'd end up with client specific forwarders.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:09:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parametrized-universal-forwarders-in-a-distributed-env/m-p/23278#M3662</guid>
      <dc:creator>greg0ry</dc:creator>
      <dc:date>2020-09-28T10:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parametrized universal forwarders in a distributed env.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parametrized-universal-forwarders-in-a-distributed-env/m-p/23279#M3663</link>
      <description>&lt;P&gt;You're headed in the right direction, server classes configured so that Forwarder_X gets a Forwarder_X and and Forwarder_Y gets a forwarder_Y app is the solution. This is the normative method for accomplishing this type of task. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:09:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parametrized-universal-forwarders-in-a-distributed-env/m-p/23279#M3663</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2020-09-28T10:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parametrized universal forwarders in a distributed env.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parametrized-universal-forwarders-in-a-distributed-env/m-p/23280#M3664</link>
      <description>&lt;P&gt;Well, you should NOT change the DS's own inputs.conf, but rather create a few applications - each containing an inputs.conf file.&lt;/P&gt;

&lt;P&gt;On the DS, create an 'app' under $SPLUNK_HOME/etc/deployment-apps/ for each type of server.&lt;BR /&gt;
Such an app could contain an inputs.conf file specifying &lt;CODE&gt;[monitor]&lt;/CODE&gt; stanzas relevant for that type of server. &lt;/P&gt;

&lt;P&gt;Then you create/edit the serverclass.conf (typically under $SPLUNK_HOME/etc/system/local/) on the DS, defining which servers should have what app.&lt;/P&gt;

&lt;P&gt;Then you make sure that the forwarders know whom to contact for configuration information, i.e. run &lt;CODE&gt;./splunk set deploy-poll &amp;lt;ip:port&amp;gt;&lt;/CODE&gt; on each forwarder. (replace ip:port with your DS ip and port (8089 by default)).&lt;/P&gt;

&lt;P&gt;Then you can run &lt;CODE&gt;./splunk reload deploy-server&lt;/CODE&gt; on your DS.&lt;/P&gt;

&lt;P&gt;If everything went well, your forwarders should contact the DS, download the new app, and start sending the logs.&lt;/P&gt;

&lt;P&gt;For more info, see&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Aboutdeploymentserver"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Aboutdeploymentserver&lt;/A&gt;&lt;BR /&gt;
and the pages following.&lt;/P&gt;

&lt;P&gt;hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2011 12:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parametrized-universal-forwarders-in-a-distributed-env/m-p/23280#M3664</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-11-29T12:26:27Z</dc:date>
    </item>
  </channel>
</rss>

