<?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 send syslog data to the indexer and another TCP listener? (Part 4) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290707#M93278</link>
    <description>&lt;P&gt;so this is what I am going to test, fyi, hopefully  I wrote it correctly&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Edit $SPLUNK_HOME/etc/system/local/props.conf

[syslog]
TRANSFORMS-routing = cloneAll


Edit $SPLUNK_HOME/etc/system/local/transforms.conf

[cloneAll]
REGEX=(.)
DEST_KEY=_TCP_ROUTING
FORMAT=Everything,Subsidiary  


Edit $SPLUNK_HOME/etc/system/local/outputs.conf

[tcpout]
defaultGroup=nothing

[tcpout:Everything]
disabled=false
server=x.x.x.x:9997   &amp;lt;---- my splunk indexer

[tcpout:Subsidiary]
disabled=false
sendCookedData=false
server=x.x.x.x:1234   &amp;lt;---- the 3rd party app tcp receiver
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 19 Feb 2018 16:45:32 GMT</pubDate>
    <dc:creator>Log_wrangler</dc:creator>
    <dc:date>2018-02-19T16:45:32Z</dc:date>
    <item>
      <title>How to send syslog data to the indexer and another TCP listener? (Part 4)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290704#M93275</link>
      <description>&lt;P&gt;This question is based off earlier questions, but I am looking for someone to confirm that the following conf is written correctly.&lt;BR /&gt;
Reference link is &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Replicate_a_subset_of_data_to_a_third-party_system"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Forwarding/Routeandfilterdatad#Replicate_a_subset_of_data_to_a_third-party_system&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Scenario:&lt;BR /&gt;&lt;BR /&gt;
I have a data source that I want to send to a Splunk Fwdr which will then fork ALL the  cooked data to 1) my indexers (autoLB) AND 2) ALL the uncooked data to a thrid party TCP listener.&lt;/P&gt;

&lt;P&gt;Here is what I have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Edit $SPLUNK_HOME/etc/system/local/props.conf

[syslog]
TRANSFORMS-routing = routeAll, routeSubset


Edit $SPLUNK_HOME/etc/system/local/transforms.conf

[routeAll]
REGEX=(.)    &amp;lt;-------- This specifies all data goes to the indexer
DEST_KEY=_TCP_ROUTING
FORMAT=Everything   &amp;lt;-------- This specifies all data goes to the indexer


[routeSubset]
REGEX=(.)   &amp;lt;--------- This is specifies all data would go to the 3rd party tcp listener
DEST_KEY=_TCP_ROUTING
FORMAT=Subsidiary   &amp;lt; ----------------- This specifies that all data would go to the 3rd party TCP receiver as "subsidiary"


Edit $SPLUNK_HOME/etc/system/local/outputs.conf

[tcpout]
defaultGroup=nothing

[tcpout:Everything]
disabled=false
server=x.x.x.x:9997   &amp;lt;---- my splunk indexer

[tcpout:Subsidiary]
disabled=false
sendCookedData=false
server=x.x.x.x:1234   &amp;lt;---- the 3rd party app tcp receiver
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;however is there a simpler way to write this?   I just don't know of a way to say "uncooked to 3rd party" and "cooked to indexers" in one stanza?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290704#M93275</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-02-19T16:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to the indexer and another TCP listener? (Part 4)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290705#M93276</link>
      <description>&lt;P&gt;The TRANSFORM &lt;CODE&gt;routeSubset&lt;/CODE&gt; will be executed first and will send all data to 3rd party TCP receiver. Thus no events will go to your indexer. Since you want to clone the data for syslog, try something like this&lt;/P&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [syslog]
 TRANSFORMS-routing = cloneAll
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cloneAll]
 REGEX=(.)   
 DEST_KEY=_TCP_ROUTING
 FORMAT=Everything,Subsidiary      &amp;lt;-------- This specifies all data goes to both indexer and Subsidiary  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No change to outputs.conf &lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290705#M93276</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-02-19T16:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to the indexer and another TCP listener? (Part 4)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290706#M93277</link>
      <description>&lt;P&gt;Thank you I will test it and let you know.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290706#M93277</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-02-19T16:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to the indexer and another TCP listener? (Part 4)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290707#M93278</link>
      <description>&lt;P&gt;so this is what I am going to test, fyi, hopefully  I wrote it correctly&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Edit $SPLUNK_HOME/etc/system/local/props.conf

[syslog]
TRANSFORMS-routing = cloneAll


Edit $SPLUNK_HOME/etc/system/local/transforms.conf

[cloneAll]
REGEX=(.)
DEST_KEY=_TCP_ROUTING
FORMAT=Everything,Subsidiary  


Edit $SPLUNK_HOME/etc/system/local/outputs.conf

[tcpout]
defaultGroup=nothing

[tcpout:Everything]
disabled=false
server=x.x.x.x:9997   &amp;lt;---- my splunk indexer

[tcpout:Subsidiary]
disabled=false
sendCookedData=false
server=x.x.x.x:1234   &amp;lt;---- the 3rd party app tcp receiver
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Feb 2018 16:45:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/290707#M93278</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-02-19T16:45:32Z</dc:date>
    </item>
  </channel>
</rss>

