<?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: Forwarding select data in my environment. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29426#M5053</link>
    <description>&lt;P&gt;Ok - so I finally was able to get this in place (change windows and firewalls oh my), and it works, but the data being sent to the 3rd party no longer has the original host header in it. Is that due to truncation, or is there something I can do to specifically make sure that data goes with the data?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2010 05:41:59 GMT</pubDate>
    <dc:creator>Steve_Litras</dc:creator>
    <dc:date>2010-09-21T05:41:59Z</dc:date>
    <item>
      <title>Forwarding select data in my environment.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29423#M5050</link>
      <description>&lt;P&gt;I'm trying to take data from specific systems and, after indexing it, forward it to a third party for other analysis. I have data coming from light forwarders on the systems in question, and going through a forwarding layer before it gets to the indexing hosts. I applied, basically, the recipe as defined in the documentation on the indexers:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*WCA*]
TRANSFORMS-routing = send_to_syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf (note, splunk complains about not having a REGEX entry - I've tried it with .* as the REGEX to no avail):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[send_to_syslog]
DEST_KEY = _SYSLOG_ROUTING
FORMAT = SW_syslog_group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog:SW_syslog_group]
disabled=false
server = 10.20.30.40:514
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm wondering if I need to apply the props.conf and the transforms.conf at the forwarder layer, and if I do that, will it still properly index, or will it forward out prior to indexing?&lt;/P&gt;

&lt;P&gt;thanks
Steve&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 04:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29423#M5050</guid>
      <dc:creator>Steve_Litras</dc:creator>
      <dc:date>2010-08-13T04:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding select data in my environment.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29424#M5051</link>
      <description>&lt;P&gt;So you have LWF-&amp;gt;Intermediate Hvy Forwarder-&amp;gt;Indexer? If so, the problem is that the TRANSFORMS/parsing phase will not occur on the indexer. However, you're right that you don't want to set this on the intermediate forwarder layer either, because I'm pretty sure it won't carry through to the indexer. I would try it though, because if it does work it will be a lot easier.&lt;/P&gt;

&lt;P&gt;Otherwise, I'd would instead set up an extra Splunk TCP port on the indexer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# regular tcp port
[splunktcp://9997]

# special tcp port everything sent here goes to syslog out
[splunktcp://9999]
_SYSLOG_ROUTING = SW_syslog_group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then on the intermediate layer, you route to the appropriate Splunk TCP output group:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[send_to_syslog_port]
DEST_KEY = _TCP_ROUTING
FORMAT = SW_splunk_syslog_port_group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where the SW_splunk_syslog_port_group goes to port 9999. (The default group is the one that goes to 9997.)&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;It's also possible to force the indexer to run parsed data (from the Hvy Forwarder) through the parse queue again. This has problems, depending on your sourcetype rules, because some transforms might get run more than once, which means you'll need to go through configs on the indexers and disable default or previously inactive configs to prevent that. Once you've done that, you can add into a global inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunktcp]
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 overrides the default rule that only parses data from a LWF, and parses everything from any forwarder. I'm not sure if you could do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunktcp://9999]
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;and only apply it to data on one port. If it does work, and if you need or want to distinguish it, that might not be a bad idea. This isn't great, because you're put&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 06:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29424#M5051</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-13T06:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding select data in my environment.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29425#M5052</link>
      <description>&lt;P&gt;If I set up the alternate port, as you suggested, would the data still be indexed? Do I, in that case need to specify: &lt;/P&gt;

&lt;P&gt;indexAndForward = true&lt;/P&gt;

&lt;P&gt;for the "special" splunktcp port?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 22:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29425#M5052</guid>
      <dc:creator>Steve_Litras</dc:creator>
      <dc:date>2010-08-13T22:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding select data in my environment.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29426#M5053</link>
      <description>&lt;P&gt;Ok - so I finally was able to get this in place (change windows and firewalls oh my), and it works, but the data being sent to the 3rd party no longer has the original host header in it. Is that due to truncation, or is there something I can do to specifically make sure that data goes with the data?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2010 05:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-select-data-in-my-environment/m-p/29426#M5053</guid>
      <dc:creator>Steve_Litras</dc:creator>
      <dc:date>2010-09-21T05:41:59Z</dc:date>
    </item>
  </channel>
</rss>

