<?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 Intermediate forwarder problems / timestamping /  transforms in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35877#M7909</link>
    <description>&lt;P&gt;Hi we have a rather complicated setup, part of which uses an intermediate forwarder (full wf) to pass events from a series of light weight forwarders to a central index.&lt;/P&gt;

&lt;P&gt;We would like to conduct all our transformations and data processing on the indexer, with the intermediate forwarder acting as nothing more than just a relay point for the light weight forwarders which point to it.&lt;/P&gt;

&lt;P&gt;The problems I've been facing are rather strange. 
originally I noticed that splunk was not doing any transformations, field extractions or time stamping on the data that was coming through the intermediate forwarder. I am assuming that as it passes through the forwarder the data get's "cooked" so when it arrives at the indexer, the indexer assumes it does not need to do anything other than add it to the index. &lt;/P&gt;

&lt;P&gt;So I changed the outputs.conf on the intermediate forwarder to send raw data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = blahblah
disabled = false

[tcpout:blahblah]
server = indexer:9996
sendCookedData = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hoping it would spur the indexer into doing the data processing.
However this just lead to splunkd crashing on the intermediate forwarder every time it tried to connect to the indexer after it spewed these messages below a few hundred times (crash report &lt;A href="http://pastebin.com/AeZyBPd3" rel="nofollow"&gt;here&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Taken from the intermediate forwarder, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-31-2011 01:52:59.846 WARN  TcpOutputProc - TcpSendThread: Connection to server 10.137.7.20:9996, fd:23 lost - retrying: Broken pipe
01-31-2011 01:52:59.846 INFO  TcpOutputProc - attempting to connect to indexer:9996...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Taken from the indexer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Monday Januar&amp;lt;90&amp;gt;^Yó^C! from hostname=intermediateforwarder, ip=XXXXXXXXXX, port=34447
01-31-2011 08:47:51.676 INFO  TcpInputProc - Hostname=intermediateforwarder closed connection
01-31-2011 08:47:52.444 ERROR TcpInputProc - Received unrecognized signature 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This lead me to reverting back to sending cooked data, which worked, (ie splunk did not crash and the data makes it through, but unanalysed),&lt;/P&gt;

&lt;P&gt;current outputs.conf on the intermediate forwarder. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = blahblah
disabled = false

[tcpout:blahblah]
server = indexer:9996
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I went down the route of trying to force the indexer to reanaylze the data, by adding route=... to inputs .conf as below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]

host = indexer

[splunktcp://9996] route=has_key:_utf8:parsingQueue;has_key:_linebreaker:parsingQueue;absent_key:_utf8:parsingQueue;absent_key:_linebreaker:parsingQueue;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This nearly works, all the data now gets transformed and has its fields extracted but, about 40% of the data is not being correctly timestamped (ie exactly X hours in the future).  Its strange because the date format is exactly the same, same sourcetypes, and even the same sources of data are appearing to be correctly indexed and indexed in the future at random. &lt;/P&gt;

&lt;P&gt;I tried disabling all timestamp extraction on the indexer and just logging the events as they came in, however this still resulted in "future events".&lt;/P&gt;

&lt;P&gt;As such I am completely out of ideas on what my next move should be.&lt;/P&gt;

&lt;P&gt;I know the obvious solution would be to do all the transforms on the intermediate forwarder, but this is something we would like to avoid doing.&lt;/P&gt;

&lt;P&gt;If you have ideas any I'd be glad to hear them.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;ps our enviroment is a mix of solaris and linux (red hat), all splunk instances are 4.1.6.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2011 11:12:50 GMT</pubDate>
    <dc:creator>pl123</dc:creator>
    <dc:date>2011-01-31T11:12:50Z</dc:date>
    <item>
      <title>Intermediate forwarder problems / timestamping /  transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35877#M7909</link>
      <description>&lt;P&gt;Hi we have a rather complicated setup, part of which uses an intermediate forwarder (full wf) to pass events from a series of light weight forwarders to a central index.&lt;/P&gt;

&lt;P&gt;We would like to conduct all our transformations and data processing on the indexer, with the intermediate forwarder acting as nothing more than just a relay point for the light weight forwarders which point to it.&lt;/P&gt;

&lt;P&gt;The problems I've been facing are rather strange. 
originally I noticed that splunk was not doing any transformations, field extractions or time stamping on the data that was coming through the intermediate forwarder. I am assuming that as it passes through the forwarder the data get's "cooked" so when it arrives at the indexer, the indexer assumes it does not need to do anything other than add it to the index. &lt;/P&gt;

&lt;P&gt;So I changed the outputs.conf on the intermediate forwarder to send raw data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = blahblah
disabled = false

[tcpout:blahblah]
server = indexer:9996
sendCookedData = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hoping it would spur the indexer into doing the data processing.
However this just lead to splunkd crashing on the intermediate forwarder every time it tried to connect to the indexer after it spewed these messages below a few hundred times (crash report &lt;A href="http://pastebin.com/AeZyBPd3" rel="nofollow"&gt;here&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Taken from the intermediate forwarder, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-31-2011 01:52:59.846 WARN  TcpOutputProc - TcpSendThread: Connection to server 10.137.7.20:9996, fd:23 lost - retrying: Broken pipe
01-31-2011 01:52:59.846 INFO  TcpOutputProc - attempting to connect to indexer:9996...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Taken from the indexer&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Monday Januar&amp;lt;90&amp;gt;^Yó^C! from hostname=intermediateforwarder, ip=XXXXXXXXXX, port=34447
01-31-2011 08:47:51.676 INFO  TcpInputProc - Hostname=intermediateforwarder closed connection
01-31-2011 08:47:52.444 ERROR TcpInputProc - Received unrecognized signature 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This lead me to reverting back to sending cooked data, which worked, (ie splunk did not crash and the data makes it through, but unanalysed),&lt;/P&gt;

&lt;P&gt;current outputs.conf on the intermediate forwarder. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = blahblah
disabled = false

[tcpout:blahblah]
server = indexer:9996
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I went down the route of trying to force the indexer to reanaylze the data, by adding route=... to inputs .conf as below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]

host = indexer

[splunktcp://9996] route=has_key:_utf8:parsingQueue;has_key:_linebreaker:parsingQueue;absent_key:_utf8:parsingQueue;absent_key:_linebreaker:parsingQueue;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This nearly works, all the data now gets transformed and has its fields extracted but, about 40% of the data is not being correctly timestamped (ie exactly X hours in the future).  Its strange because the date format is exactly the same, same sourcetypes, and even the same sources of data are appearing to be correctly indexed and indexed in the future at random. &lt;/P&gt;

&lt;P&gt;I tried disabling all timestamp extraction on the indexer and just logging the events as they came in, however this still resulted in "future events".&lt;/P&gt;

&lt;P&gt;As such I am completely out of ideas on what my next move should be.&lt;/P&gt;

&lt;P&gt;I know the obvious solution would be to do all the transforms on the intermediate forwarder, but this is something we would like to avoid doing.&lt;/P&gt;

&lt;P&gt;If you have ideas any I'd be glad to hear them.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;ps our enviroment is a mix of solaris and linux (red hat), all splunk instances are 4.1.6.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2011 11:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35877#M7909</guid>
      <dc:creator>pl123</dc:creator>
      <dc:date>2011-01-31T11:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate forwarder problems / timestamping /  transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35878#M7910</link>
      <description>&lt;P&gt;I know this is likely not what you want to hear, but I suggest just putting your props.conf and transforms.conf entries for your extractions etc onto your intermediate forwarder.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 05:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35878#M7910</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-02-01T05:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate forwarder problems / timestamping /  transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35879#M7911</link>
      <description>&lt;P&gt;Thats what we have ended up doing, a bit annoying but it works.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 09:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35879#M7911</guid>
      <dc:creator>pl123</dc:creator>
      <dc:date>2011-02-01T09:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate forwarder problems / timestamping /  transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35880#M7912</link>
      <description>&lt;P&gt;What you want is to just set up your intermediate forwarder as a LWF, instead of a heavy forwarder. The most significant difference between light and heavy forwarders is precisely that a heavy does the parsing of the data.&lt;/P&gt;

&lt;P&gt;There are two things you have to modify about the base LWF installation, however:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Re-enable Splunk TCP input so you can receive forwarded data. In default-mode.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pipeline:tcp]
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Disable or increase the throughput throttle. In limits.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[thruput]
maxKBps = 0
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;This will give you exactly what you're asking for, a forwarder that forwards data without parsing it.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 12:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35880#M7912</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-01T12:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate forwarder problems / timestamping /  transforms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35881#M7913</link>
      <description>&lt;P&gt;Cheers, looks like this is what we were after!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2011 13:24:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Intermediate-forwarder-problems-timestamping-transforms/m-p/35881#M7913</guid>
      <dc:creator>pl123</dc:creator>
      <dc:date>2011-02-01T13:24:49Z</dc:date>
    </item>
  </channel>
</rss>

