<?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 Monitoring multiple servers/paths with a single inputs.conf app in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-multiple-servers-paths-with-a-single-inputs-conf-app/m-p/415495#M73466</link>
    <description>&lt;P&gt;Trying to setup an "intelligent" inputs.conf that uses the system name of the forwarder then uses the correct path for the monitor input line based on that system name. For instance, "testserver1" uses the inputs for the directory with "server1", and  "testserver2" uses the inputs for the directory with "server2".&lt;/P&gt;

&lt;P&gt;Otherwise I have to create many separate apps, and server classes to be deployed to each individual server. There are many. Would be great to deploy 1 ap/server class to all (70) servers, and have them detect which monitor lines to use.&lt;/P&gt;

&lt;P&gt;Can an inputs.conf be aware of the forwarders hostname, and be written to look for just that match?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;testserver1.domain.com
/opt/projects/teams/server1/*.log
/opt/projects/teams/server1/webapps/access*.log*

testserver2.domain.com
/opt/projects/teams/server2/*.log
/opt/projects/teams/server2/webapps/access*.log

testserver3.domain.com
/opt/projects/teams/server3/*.log
/opt/projects/teams/server3/webapps/access*.log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Jul 2019 22:10:25 GMT</pubDate>
    <dc:creator>joesrepsolc</dc:creator>
    <dc:date>2019-07-26T22:10:25Z</dc:date>
    <item>
      <title>Monitoring multiple servers/paths with a single inputs.conf app</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-multiple-servers-paths-with-a-single-inputs-conf-app/m-p/415495#M73466</link>
      <description>&lt;P&gt;Trying to setup an "intelligent" inputs.conf that uses the system name of the forwarder then uses the correct path for the monitor input line based on that system name. For instance, "testserver1" uses the inputs for the directory with "server1", and  "testserver2" uses the inputs for the directory with "server2".&lt;/P&gt;

&lt;P&gt;Otherwise I have to create many separate apps, and server classes to be deployed to each individual server. There are many. Would be great to deploy 1 ap/server class to all (70) servers, and have them detect which monitor lines to use.&lt;/P&gt;

&lt;P&gt;Can an inputs.conf be aware of the forwarders hostname, and be written to look for just that match?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;testserver1.domain.com
/opt/projects/teams/server1/*.log
/opt/projects/teams/server1/webapps/access*.log*

testserver2.domain.com
/opt/projects/teams/server2/*.log
/opt/projects/teams/server2/webapps/access*.log

testserver3.domain.com
/opt/projects/teams/server3/*.log
/opt/projects/teams/server3/webapps/access*.log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 22:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-multiple-servers-paths-with-a-single-inputs-conf-app/m-p/415495#M73466</guid>
      <dc:creator>joesrepsolc</dc:creator>
      <dc:date>2019-07-26T22:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring multiple servers/paths with a single inputs.conf app</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-multiple-servers-paths-with-a-single-inputs-conf-app/m-p/415496#M73467</link>
      <description>&lt;P&gt;The closest that you can do is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; /opt/projects/teams/*/*.log
 /opt/projects/teams/*/webapps/access*.log*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 22:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-multiple-servers-paths-with-a-single-inputs-conf-app/m-p/415496#M73467</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-26T22:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring multiple servers/paths with a single inputs.conf app</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitoring-multiple-servers-paths-with-a-single-inputs-conf-app/m-p/415497#M73468</link>
      <description>&lt;P&gt;Hi  joesrepsolc,&lt;BR /&gt;
did you tried a single stanza with with something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/projects/teams/*/]
whitelist = \.log$|webapps\/access.\.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 14:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitoring-multiple-servers-paths-with-a-single-inputs-conf-app/m-p/415497#M73468</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-07-27T14:48:33Z</dc:date>
    </item>
  </channel>
</rss>

