<?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: How to forward internal events through two forwarders? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11275#M547</link>
    <description>&lt;P&gt;please indicate the type of forwarder, light or heavy, in each case.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2010 03:16:29 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-04-13T03:16:29Z</dc:date>
    <item>
      <title>How to forward internal events through two forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11274#M546</link>
      <description>&lt;P&gt;I am having trouble getting &lt;CODE&gt;_internal&lt;/CODE&gt; and &lt;CODE&gt;_audit&lt;/CODE&gt; to be forwarder properly when being passed through more than one forwarder.  Any ideas on what I should try or why this doesn't not work?&lt;/P&gt;

&lt;P&gt;Here is a simple example layout using 3 servers (a,b,c).  Where &lt;CODE&gt;splunk-a&lt;/CODE&gt; and &lt;CODE&gt;splunk-b&lt;/CODE&gt; are normal forwarders (e.g. not light-weight forwarders), and &lt;CODE&gt;splunk-c&lt;/CODE&gt; is the central indexer.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;&lt;STRONG&gt;Splunk server diagram:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;splunk-a  --&amp;gt;  splunk-b:9997  --&amp;gt;  splunk-c:9997&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In my setup, all three servers are now running 4.0.10.  I recently upgraded &lt;CODE&gt;splunk-a&lt;/CODE&gt; and &lt;CODE&gt;splunk-b&lt;/CODE&gt; from 3.4.x, and I am seeing some different results, but still not what would would expect.&lt;/P&gt;

&lt;P&gt;What I'm finding is that internal events for &lt;CODE&gt;splunk-a&lt;/CODE&gt; are being dropped, and with Splunk 3.4 these events were actually getting indexed on &lt;CODE&gt;splunk-b&lt;/CODE&gt;, but in botch cases, the internal events are not being passed to &lt;CODE&gt;splunk-c&lt;/CODE&gt; as I would expect them to be.  All events that are generated on &lt;CODE&gt;splunk-b&lt;/CODE&gt; are properly being forwarded and indexed on &lt;CODE&gt;splunk-c&lt;/CODE&gt;, as expected.&lt;/P&gt;

&lt;P&gt;I can update this post with my inputs.conf and outputs.conf upon request.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;&lt;EM&gt;Background info:&lt;/EM&gt;  Our setup is such that we have a central splunk indexer (&lt;CODE&gt;splunk-c&lt;/CODE&gt;) on our trusted network.  We also have a central forwarding splunk instance in our DMZ (&lt;CODE&gt;splunk-b&lt;/CODE&gt;), which forwards all splunk DMZ events (i.e. from &lt;CODE&gt;splunk-a&lt;/CODE&gt;) to the trusted network.  (From a networking/firewall perspective, this seems safer than letting just any machine in the DMZ forward events to our internal central splunk indexer.  But I'm willing to rethink this if there are good reasons.)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; I somehow found a way to get the internal events to be forwarded across &lt;CODE&gt;splunk-b&lt;/CODE&gt;.  It seems like adding the &lt;CODE&gt;_TCP_ROUTING&lt;/CODE&gt; entry for the receiving splunktcp port in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; made the difference.  This input now looks like:&lt;/P&gt;

&lt;PRE&gt;
[splunktcp://9997]
&lt;B&gt;_TCP_ROUTING = *&lt;/B&gt;
sourcetype = tcp-9997
&lt;/PRE&gt;

&lt;P&gt;Of course, there is still something very weird about this.  The internal events seem lag between 2 to 7 minutes behind the rest of the events.  (In other words, the latest events from the  search &lt;CODE&gt;host=splunk-a sourcetype=access_common&lt;/CODE&gt; will be from within the past 30 seconds or so, whereas the latest events from &lt;CODE&gt;host=splunk-a index=_internal&lt;/CODE&gt; will often be many minutes old.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update #2:&lt;/STRONG&gt;  This issue has gone away after upgrading &lt;CODE&gt;splunk-a&lt;/CODE&gt; and &lt;CODE&gt;splunk-b&lt;/CODE&gt; to 4.1.x.  So if anyone else is running into similarity weird forwarding stuff, then I'd recommend upgrading to 4.1 based on my experiences.&lt;/P&gt;

&lt;P&gt;I also had an issue with &lt;EM&gt;all&lt;/EM&gt; events being double up from &lt;CODE&gt;splunk-c&lt;/CODE&gt; (at one point it thought that only the &lt;CODE&gt;_internal&lt;/CODE&gt; events were being doubled).  Again, the upgrade 4.1. fixed this.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 02:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11274#M546</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-13T02:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward internal events through two forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11275#M547</link>
      <description>&lt;P&gt;please indicate the type of forwarder, light or heavy, in each case.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 03:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11275#M547</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-13T03:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward internal events through two forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11276#M548</link>
      <description>&lt;P&gt;I updated the post.  (All forwarders are heavy.)  I'm not using &lt;CODE&gt;SplunkForwarder&lt;/CODE&gt; app, but the same config values are being set.  &lt;CODE&gt;splunk-a&lt;/CODE&gt; is running a "semi-light" forwarder; we have a custom forwarding app that disables unused features, but all events are still being processed locally and forwarding cooked events; so therefore I think it would still be considered "heavy". (I worked with Splunk support to confirm the validity of our custom forwarding app.)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 21:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11276#M548</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-13T21:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward internal events through two forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11277#M549</link>
      <description>&lt;P&gt;Splunk, historically, had a policy of not forwarding events belonging to indexes beginning with underscores.  This includes _internal.&lt;/P&gt;

&lt;P&gt;To get _internal events to be forwarded for the light forwarder case (where there was no local indexing), this weird '_TCP_ROUTING = *' setting at the input layer was applied to override that policy to cause the events to be forwarded regardles.&lt;/P&gt;

&lt;P&gt;Aside: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;I insisted this mysterious internal
policy was pretty ridiculous, because
it was not documented nor observable.
It was essentially an invisible
configuration setting.  I filed a
defect to move this behavior into the
configuration files.  So in 4.1, it is.
Outputs.conf entries have an index blacklist 
what they're willing to accept and you can change it.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Meanwhile there is some sort of bug floating around regarding forwarding in 4.0.10, which you are probably seeing a manifestation of in your delays.  More research / answering is required to address this.  I think support should be engaged.  &lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 02:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11277#M549</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-04-15T02:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward internal events through two forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11278#M550</link>
      <description>&lt;P&gt;Thanks for your response.  (Good work with the new &lt;CODE&gt;forwardedindex.*&lt;/CODE&gt; settings, that does seem like a much more logical approach.)  For the moment, I think I'll wait and see if 4.0.11 (once its released) fixes anything.  Or perhaps give 4.1.1 a try (I hesitate on installing any &lt;CODE&gt;x.y.0&lt;/CODE&gt; version of anything on a production system).&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 04:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11278#M550</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-04-15T04:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward internal events through two forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11279#M551</link>
      <description>&lt;P&gt;Credit goes to eng, jag picked up issue, designed the config for it, which is pretty reasonable.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2010 02:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11279#M551</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-04-17T02:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward internal events through two forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11280#M552</link>
      <description>&lt;P&gt;Upgrading my forwarding systems to 4.1.x resolve my forwarding issues.  (I also update the post, see "Update #2")&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2010 23:06:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-events-through-two-forwarders/m-p/11280#M552</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-05-17T23:06:17Z</dc:date>
    </item>
  </channel>
</rss>

