<?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: Error while Redirect 514 to 9997 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116559#M97676</link>
    <description>&lt;P&gt;I'm listening the port 9997 thanks that: [splunktcp://9997]&lt;BR /&gt;
Should I add also: [tcp://9997]&lt;/P&gt;</description>
    <pubDate>Wed, 02 Apr 2014 14:44:10 GMT</pubDate>
    <dc:creator>bgaignon</dc:creator>
    <dc:date>2014-04-02T14:44:10Z</dc:date>
    <item>
      <title>Error while Redirect 514 to 9997</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116558#M97675</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I have a source that send log via syslog push tcp 514.&lt;BR /&gt;
The configuration is working well on my SPlunk test server, I receive the logs.&lt;/P&gt;

&lt;P&gt;In production SPlunk is not installed as root so I redirected the port 514 to 9997 like &lt;A href="http://answers.splunk.com/answers/63898/how-to-listen-to-port-udp-514-when-splunk-is-not-root"&gt;here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I can see that the iptables has been changed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; iptables -t nat -L -n -v
Chain PREROUTING (policy ACCEPT 2465 packets, 149K bytes)
 pkts bytes target     prot opt in     out   source         destination
80194 4813K REDIRECT   tcp  --  *      *     0.0.0.0/0      0.0.0.0/0     tcp dpt:514 redir ports 9997
    0     0 REDIRECT   tcp  --  *      *     0.0.0.0/0      0.0.0.0/0     tcp dpt:514 redir ports 9997
    0     0 REDIRECT   tcp  --  eth0   *     0.0.0.0/0      0.0.0.0/0     tcp dpt:514 redir ports 9997
    0     0 REDIRECT   udp  --  eth0   *     0.0.0.0/0      0.0.0.0/0     udp dpt:514 redir ports 9997
    0     0 REDIRECT   udp  --  eth0   *     0.0.0.0/0      0.0.0.0/0     udp dpt:514 redir ports 9997
    0     0 REDIRECT   tcp  --  eth0   *     0.0.0.0/0      0.0.0.0/0     tcp dpt:514 redir ports 9997
    0     0 REDIRECT   tcp  --  lo0    *     0.0.0.0/0      0.0.0.0/0     tcp dpt:514 redir ports 9997
    0     0 REDIRECT   udp  --  lo0    *     0.0.0.0/0      0.0.0.0/0     udp dpt:514 redir ports 9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I can't receive my logs and in splunkd.log I receive a lot of messages like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-02-2014 10:10:23.776 -0400 ERROR TcpInputProc - Received unexpected 1009857598 byte message (Invalid payload_size=1009857598 received while in parseState=1)! from src=100.101.102.103:44561
04-02-2014 10:10:24.457 -0400 ERROR TcpInputProc - Received unexpected 1009857598 byte message (Invalid payload_size=1009857598 received while in parseState=1)! from src=100.101.102.103:44567
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any Ideas is welcome.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116558#M97675</guid>
      <dc:creator>bgaignon</dc:creator>
      <dc:date>2014-04-02T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Redirect 514 to 9997</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116559#M97676</link>
      <description>&lt;P&gt;I'm listening the port 9997 thanks that: [splunktcp://9997]&lt;BR /&gt;
Should I add also: [tcp://9997]&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 14:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116559#M97676</guid>
      <dc:creator>bgaignon</dc:creator>
      <dc:date>2014-04-02T14:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Redirect 514 to 9997</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116560#M97677</link>
      <description>&lt;P&gt;The splunktcp stanza is for cooked data from Splunk forwarders, don't change that. Instead, add a &lt;CODE&gt;[tcp://5140]&lt;/CODE&gt; stanza (or any unused port) and redirect 514 there instead of to 9997.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 16:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116560#M97677</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-02T16:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Redirect 514 to 9997</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116561#M97678</link>
      <description>&lt;P&gt;No, you can't do it like that.&lt;/P&gt;

&lt;P&gt;splunktcp is a proprietary protocol used ONLY for forwarding traffic between Splunk instances. Syslog on the other hand is a "raw" and completely different protocol. When you try to send syslog to a port expecting splunktcp traffic, it will just discard the data as it doesn't find it valid.&lt;/P&gt;

&lt;P&gt;If you're able to listen on port 514 I'd keep that, and use a raw tcp input there instead.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 16:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116561#M97678</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-04-02T16:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Redirect 514 to 9997</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116562#M97679</link>
      <description>&lt;P&gt;I was gonna say that, and add that you can configure Splunk to listen for TCP on any port that is not already in use.  If your production network blocks 514 then pick another port greater than 1024 that is not already in use on your network.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 16:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116562#M97679</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-04-02T16:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Redirect 514 to 9997</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116563#M97680</link>
      <description>&lt;P&gt;Thank you guys.&lt;BR /&gt;
So yes separate tcp and splunktcp fix the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 17:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116563#M97680</guid>
      <dc:creator>bgaignon</dc:creator>
      <dc:date>2014-04-02T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Redirect 514 to 9997</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116564#M97681</link>
      <description>&lt;P&gt;I'm having the same problem. How did you separate the splunktcp to tcp? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 00:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116564#M97681</guid>
      <dc:creator>sympatiko</dc:creator>
      <dc:date>2014-11-19T00:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error while Redirect 514 to 9997</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116565#M97682</link>
      <description>&lt;P&gt;How can I do that. I'm having the same issue. You're help is very much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 01:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Error-while-Redirect-514-to-9997/m-p/116565#M97682</guid>
      <dc:creator>sympatiko</dc:creator>
      <dc:date>2014-11-19T01:19:21Z</dc:date>
    </item>
  </channel>
</rss>

