<?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 can I debug a TCP feed on a heavy forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260126#M49937</link>
    <description>&lt;P&gt;Oohhh, this is interesting.  Thanks.  &lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2015 02:40:47 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2015-10-07T02:40:47Z</dc:date>
    <item>
      <title>How can I debug a TCP feed on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260120#M49931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to debug a tcp feed from a load-balancer, on a server where I don't have root or sudo. Is there a props config that I can make to put it into debug and see exactly what it's processing? I'm using a heavy forwarder. &lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 20:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260120#M49931</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-10-06T20:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug a TCP feed on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260121#M49932</link>
      <description>&lt;P&gt;You could ask the sysadmins to install tcpdump for you.  It's not a definitive answer, but I don't know of any debug mode as such.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 21:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260121#M49932</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2015-10-06T21:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug a TCP feed on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260122#M49933</link>
      <description>&lt;P&gt;I would, however, like to be corrected and shown wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 21:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260122#M49933</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2015-10-06T21:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug a TCP feed on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260123#M49934</link>
      <description>&lt;P&gt;Yeah, well, that adds a whole new set of processing....  If necessary, I will, but hoping there's a config entry that provide this info. &lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 21:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260123#M49934</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-10-06T21:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug a TCP feed on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260124#M49935</link>
      <description>&lt;P&gt;Tcpdump would also require sudo or root privileges, since it puts the network interface into promiscuous mode.&lt;/P&gt;

&lt;P&gt;You could try strace on the incoming splunk process, since you can run that as the splunk user, but I am not sure it would give you enough information.&lt;/P&gt;

&lt;P&gt;Another option would be to have the heavy forwarder write out the raw events it is receiving to a syslog port. To send just a subset of data, in &lt;CODE&gt;props.conf&lt;/CODE&gt;, apply the &lt;CODE&gt;send_to_syslog&lt;/CODE&gt; transform to the load balancer's hostname:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::LBhostname]
TRANSFORMS-problemLB = syslog_debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In &lt;CODE&gt;transforms.conf&lt;/CODE&gt;, configure the &lt;CODE&gt;syslog_debug&lt;/CODE&gt; transform to specify &lt;CODE&gt;_SYSLOG_ROUTING&lt;/CODE&gt; as the &lt;CODE&gt;DEST_KEY&lt;/CODE&gt; and the &lt;CODE&gt;my_syslog_group&lt;/CODE&gt; target group as the &lt;CODE&gt;FORMAT&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog_debug]
REGEX = .
DEST_KEY = _SYSLOG_ROUTING
FORMAT = my_syslog_group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In &lt;CODE&gt;outputs.conf&lt;/CODE&gt;, define the &lt;CODE&gt;my_syslog_group&lt;/CODE&gt; target group for the non-Splunk server:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog:my_syslog_group]
server = sysloghost.example.com:514
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The syslog host here could be localhost, for example. You would also need to configure your syslog server process to accept incoming connections and write the log out to a file. Since Splunk already has access to the data stream you could run a syslog process on a non-privileged port as the Splunk user so the sysadmins don't have to be involved.&lt;/P&gt;

&lt;P&gt;Reference: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/Forwarding/Routeandfilterdatad"&gt;Route &amp;amp; Filter Data&lt;/A&gt; Specifically, look at "Replicate a subset of data to a third-party system".&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 23:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260124#M49935</guid>
      <dc:creator>nnmiller</dc:creator>
      <dc:date>2015-10-06T23:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug a TCP feed on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260125#M49936</link>
      <description>&lt;P&gt;Splunk for Stream FTW! lol&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 00:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260125#M49936</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2015-10-07T00:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug a TCP feed on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260126#M49937</link>
      <description>&lt;P&gt;Oohhh, this is interesting.  Thanks.  &lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 02:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260126#M49937</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2015-10-07T02:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I debug a TCP feed on a heavy forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260127#M49938</link>
      <description>&lt;P&gt;How is the debugging going?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-debug-a-TCP-feed-on-a-heavy-forwarder/m-p/260127#M49938</guid>
      <dc:creator>nnmiller</dc:creator>
      <dc:date>2015-10-14T14:11:18Z</dc:date>
    </item>
  </channel>
</rss>

