<?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 How to send syslog data to the indexer and another TCP listener? (Part 2) 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/355802#M65028</link>
    <description>&lt;P&gt;my scenario:&lt;/P&gt;

&lt;P&gt;I have an APP that can only send syslog data to one destination.&lt;BR /&gt;
I have an HF configured to receive syslog data UDP.&lt;BR /&gt;
I want to send the APP syslog data to a HF.&lt;/P&gt;

&lt;P&gt;I need the HF to send the data to the indexer and another destination, BUT I don't want all my syslog data (from other sources) to go to the 3rd party TCP listener - just this specific APP's syslog data.&lt;/P&gt;

&lt;P&gt;Also I want the data to go to splunk (cooked), but I want the data to go to the other 3rd party TCP listener (uncooked).&lt;/P&gt;

&lt;P&gt;So if I am understanding correctly, I will edit the HF's props.conf, transforms.conf, and outputs.conf as follows:&lt;/P&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/props.conf&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-routing = routeAll, routeSubset&lt;/P&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/transforms.conf&lt;/P&gt;

&lt;P&gt;[routeAll]&lt;BR /&gt;
REGEX=(.)&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=Everything   &amp;lt;-------- This specifies everything syslog goes to the indexer, but not everything to 3rd party TCP receiver?&lt;/P&gt;

&lt;P&gt;[routeSubset]&lt;BR /&gt;
REGEX=(SYSTEM|CONFIG|THREAT)   &amp;lt;--------- This is where I would specify which data would go to the 3rd party app?&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=Subsidiary   &amp;lt; ----------------- This is how I would specify that only the above data would go to the 3rd party TCP receiver?&lt;/P&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/outputs.conf&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup=nothing&lt;/P&gt;

&lt;P&gt;[tcpout:Everything]&lt;BR /&gt;
disabled=false&lt;BR /&gt;
server=x.x.x.x:9997   &amp;lt;---- my splunk indexer&lt;/P&gt;

&lt;P&gt;[tcpout:Subsidiary]&lt;BR /&gt;
disabled=false&lt;BR /&gt;
sendCookedData=false&lt;BR /&gt;
server=x.x.x.x:1234   &amp;lt;---- the 3rd party app&lt;/P&gt;

&lt;P&gt;Does that look right? &lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:21:08 GMT</pubDate>
    <dc:creator>Log_wrangler</dc:creator>
    <dc:date>2020-09-29T17:21:08Z</dc:date>
    <item>
      <title>How to send syslog data to the indexer and another TCP listener? (Part 2)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/355802#M65028</link>
      <description>&lt;P&gt;my scenario:&lt;/P&gt;

&lt;P&gt;I have an APP that can only send syslog data to one destination.&lt;BR /&gt;
I have an HF configured to receive syslog data UDP.&lt;BR /&gt;
I want to send the APP syslog data to a HF.&lt;/P&gt;

&lt;P&gt;I need the HF to send the data to the indexer and another destination, BUT I don't want all my syslog data (from other sources) to go to the 3rd party TCP listener - just this specific APP's syslog data.&lt;/P&gt;

&lt;P&gt;Also I want the data to go to splunk (cooked), but I want the data to go to the other 3rd party TCP listener (uncooked).&lt;/P&gt;

&lt;P&gt;So if I am understanding correctly, I will edit the HF's props.conf, transforms.conf, and outputs.conf as follows:&lt;/P&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/props.conf&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-routing = routeAll, routeSubset&lt;/P&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/transforms.conf&lt;/P&gt;

&lt;P&gt;[routeAll]&lt;BR /&gt;
REGEX=(.)&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=Everything   &amp;lt;-------- This specifies everything syslog goes to the indexer, but not everything to 3rd party TCP receiver?&lt;/P&gt;

&lt;P&gt;[routeSubset]&lt;BR /&gt;
REGEX=(SYSTEM|CONFIG|THREAT)   &amp;lt;--------- This is where I would specify which data would go to the 3rd party app?&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=Subsidiary   &amp;lt; ----------------- This is how I would specify that only the above data would go to the 3rd party TCP receiver?&lt;/P&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/outputs.conf&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup=nothing&lt;/P&gt;

&lt;P&gt;[tcpout:Everything]&lt;BR /&gt;
disabled=false&lt;BR /&gt;
server=x.x.x.x:9997   &amp;lt;---- my splunk indexer&lt;/P&gt;

&lt;P&gt;[tcpout:Subsidiary]&lt;BR /&gt;
disabled=false&lt;BR /&gt;
sendCookedData=false&lt;BR /&gt;
server=x.x.x.x:1234   &amp;lt;---- the 3rd party app&lt;/P&gt;

&lt;P&gt;Does that look right? &lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:21:08 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/355802#M65028</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2020-09-29T17:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to the indexer and another TCP listener? (Part 2)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/355803#M65029</link>
      <description>&lt;P&gt;Hi @Log_wrangler,&lt;/P&gt;

&lt;P&gt;Your configuration looks good please let us know if you will face any issue and community members will help you.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 03:08:23 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/355803#M65029</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-22T03:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to the indexer and another TCP listener? (Part 2)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-the-indexer-and-another-TCP-listener/m-p/355804#M65030</link>
      <description>&lt;P&gt;Thank you for the confirmation.   I am in the staging phase right now, have not had a chance to test-run anything yet.   &lt;/P&gt;

&lt;P&gt;A couple of followup questions, &lt;BR /&gt;
1) With the current config above, if I have other sources sending syslog data to the indexer then these sources will not be disturbed and will not be accidentally sent to the 3rd party tcp receiver?    If I am understanding correctly, &lt;/P&gt;

&lt;P&gt;Edit $SPLUNK_HOME/etc/system/local/outputs.conf&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup=nothing            &lt;STRONG&gt;&amp;lt;----- setting defaultGroup to nothing defines that "everything" (old and new) goes to indexer and subsidiary goes to 3rd party??&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[tcpout:Everything]&lt;BR /&gt;
disabled=false&lt;BR /&gt;
server=x.x.x.x:9997&lt;/P&gt;

&lt;P&gt;[tcpout:Subsidiary]&lt;BR /&gt;
disabled=false&lt;BR /&gt;
sendCookedData=false&lt;BR /&gt;
server=x.x.x.x:1234 &lt;/P&gt;

&lt;P&gt;2) Is there any documentation / examples on REGEX for: &lt;/P&gt;

&lt;P&gt;[routeSubset]&lt;BR /&gt;
REGEX=(SYSTEM|CONFIG|THREAT) &amp;lt;--------- This is where I would specify which data would go to the 3rd party app?&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=Subsidiary &lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:21:33 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/355804#M65030</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2020-09-29T17:21:33Z</dc:date>
    </item>
  </channel>
</rss>

