<?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: Configure forwarders from deployment server in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105214#M22867</link>
    <description>&lt;P&gt;yes, from over here, that looks like a reasonable config.&lt;/P&gt;

&lt;P&gt;But just try it out. and be sure to create the www-index first. That won't happen automatically.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2013 05:25:31 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-04-26T05:25:31Z</dc:date>
    <item>
      <title>Configure forwarders from deployment server</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105209#M22862</link>
      <description>&lt;P&gt;I am a complete noob and I need help configuring two forwarders using a deployment server:&lt;/P&gt;

&lt;P&gt;Forwarder A&lt;BR /&gt;&lt;BR /&gt;
Need to monitor index.log from 3 apache directories /opt/log/www* &amp;lt;&amp;lt; Do I need a whitelist or blacklist here?  If so, need help there too.&lt;BR /&gt;&lt;BR /&gt;
Need them to go to index=www&lt;BR /&gt;&lt;BR /&gt;
Need to label host as webA webB and webC&lt;/P&gt;

&lt;P&gt;Forwarder B&lt;BR /&gt;&lt;BR /&gt;
Need to monitor denied.log from /opt/log/syslog &amp;lt;&amp;lt; Do I need a whitelist or blacklist here?  If so, need help there too.&lt;BR /&gt;&lt;BR /&gt;
Need to monitor allowed.log from /opt/log/syslog&lt;BR /&gt;&lt;BR /&gt;
Need them to go to index=firewall&lt;BR /&gt;&lt;BR /&gt;
Need to label host as firewall1&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 15:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105209#M22862</guid>
      <dc:creator>splunkingsplun1</dc:creator>
      <dc:date>2013-04-24T15:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Configure forwarders from deployment server</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105210#M22863</link>
      <description>&lt;P&gt;Have you started with reading the docs so that you can tell us more about where specifically in the process you got stuck? Or are you by any chance throwing your whole scenario out there and expect the Splunkbase community to do all the work for you?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 18:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105210#M22863</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-04-24T18:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Configure forwarders from deployment server</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105211#M22864</link>
      <description>&lt;P&gt;@Ayn&lt;/P&gt;

&lt;P&gt;I apologize for being vague. I appreciate any insight you can offer.&lt;/P&gt;

&lt;P&gt;This is what I have for inputs.conf so far, which I am not clear how to whitelist/blacklist&lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/www]&lt;BR /&gt;
sourcetype = apache&lt;BR /&gt;
index=www&lt;BR /&gt;
host=webA&lt;BR /&gt;
host=webB&lt;BR /&gt;
host=webC&lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/syslog]&lt;BR /&gt;
sourcetype = firewall&lt;BR /&gt;
index=www&lt;BR /&gt;
host=firewall1&lt;/P&gt;

&lt;P&gt;I haven't even started serverclass.conf yet since I am not sure the little progress I have so far will work.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 18:52:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105211#M22864</guid>
      <dc:creator>splunkingsplun1</dc:creator>
      <dc:date>2013-04-24T18:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Configure forwarders from deployment server</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105212#M22865</link>
      <description>&lt;P&gt;Hm, that config would not do what you want. Do you have 3 virtual hosts/websites under &lt;CODE&gt;/opt/log/www&lt;/CODE&gt;, and like to use that site-name as &lt;CODE&gt;host&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Normally the host gets specified in the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; &lt;CODE&gt;[default]&lt;/CODE&gt; stanza, and would be equal to the hostname, or dns-name. This setting would then be active for all files and directories that are being monitored on that host. This is a Good Thing, since it allows you to easily correlate events from different sources on a host, like logon/logoff, service restarts, application logs etc etc.&lt;/P&gt;

&lt;P&gt;There are cases where you want to rewrite the &lt;CODE&gt;host&lt;/CODE&gt; value, which would be perfectly legitimate (and even desirable) when you, e.g. have a forwarder installed on a syslog server. In that case you would want to to make it appear as if the events have a &lt;CODE&gt;host&lt;/CODE&gt; value of the originating host, and not the syslog server.&lt;/P&gt;

&lt;P&gt;Then you could put either of these under your &lt;CODE&gt;[monitor:///blah/blah]&lt;/CODE&gt;;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host_segment =&lt;/CODE&gt; &lt;EM&gt;n&lt;/EM&gt; &lt;BR /&gt;
&lt;CODE&gt;host_regex = some regex&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;e.g. if you want the fourth path element in &lt;CODE&gt;/opt/log/www/xyz/blah.log&lt;/CODE&gt; to become the hostname for this file, you'd set &lt;CODE&gt;host_segment=4&lt;/CODE&gt; and the host value will be &lt;CODE&gt;xyz&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;See docs on inputs.conf for these matters.&lt;/P&gt;

&lt;P&gt;docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2013 21:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105212#M22865</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-04-24T21:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Configure forwarders from deployment server</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105213#M22866</link>
      <description>&lt;P&gt;@kristian.kolb &lt;/P&gt;

&lt;P&gt;I have several virtual hosts under /opt/log/&lt;BR /&gt;
webA&lt;BR /&gt;
webB&lt;BR /&gt;
webC&lt;/P&gt;

&lt;P&gt;They all have access.log that I need to index, would this be correct inputs.conf?&lt;/P&gt;

&lt;P&gt;[monitor:///opt/log/www*] &lt;BR /&gt;
sourcetype = apache&lt;BR /&gt;
index=www&lt;BR /&gt;
host_segment=3&lt;BR /&gt;
whitelist = access.log$&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 23:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105213#M22866</guid>
      <dc:creator>splunkingsplun1</dc:creator>
      <dc:date>2013-04-25T23:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Configure forwarders from deployment server</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105214#M22867</link>
      <description>&lt;P&gt;yes, from over here, that looks like a reasonable config.&lt;/P&gt;

&lt;P&gt;But just try it out. and be sure to create the www-index first. That won't happen automatically.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2013 05:25:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Configure-forwarders-from-deployment-server/m-p/105214#M22867</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-04-26T05:25:31Z</dc:date>
    </item>
  </channel>
</rss>

