<?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 forward _internal to defaultGroup in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295596#M56115</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have the following outputs defined on all my universal forwarders:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = prod-group, valid-group

[tcpout:prod-group]
server = server1:9997

[tcpout:valid-group]
server = server2:9997

[tcpout:dev-group]
server = server3:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;DefaultGroup may be different on some UF.&lt;/P&gt;

&lt;P&gt;Inputs to index "_internal" are send to each output group because the file "$SPLUNKHOME/apps/SplunkUniversalForwarder/default/inputs.conf have the following contents:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://$SPLUNK_HOME/var/log/splunk/splunkd.log]
_TCP_ROUTING = *
index = _internal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to send these event only to groups defined as defaultGroup.&lt;/P&gt;

&lt;P&gt;I presume I will have to create a new "local/inputs.conf" file with a redefinition of _TCP_ROUTING like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://$SPLUNK_HOME/var/log/splunk/splunkd.log]
_TCP_ROUTING = ????
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I have no idee of the definition I have to get to _TCP_ROUTING&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:50:16 GMT</pubDate>
    <dc:creator>ktn01</dc:creator>
    <dc:date>2020-09-29T12:50:16Z</dc:date>
    <item>
      <title>How to forward _internal to defaultGroup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295596#M56115</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have the following outputs defined on all my universal forwarders:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = prod-group, valid-group

[tcpout:prod-group]
server = server1:9997

[tcpout:valid-group]
server = server2:9997

[tcpout:dev-group]
server = server3:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;DefaultGroup may be different on some UF.&lt;/P&gt;

&lt;P&gt;Inputs to index "_internal" are send to each output group because the file "$SPLUNKHOME/apps/SplunkUniversalForwarder/default/inputs.conf have the following contents:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://$SPLUNK_HOME/var/log/splunk/splunkd.log]
_TCP_ROUTING = *
index = _internal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to send these event only to groups defined as defaultGroup.&lt;/P&gt;

&lt;P&gt;I presume I will have to create a new "local/inputs.conf" file with a redefinition of _TCP_ROUTING like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://$SPLUNK_HOME/var/log/splunk/splunkd.log]
_TCP_ROUTING = ????
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I have no idee of the definition I have to get to _TCP_ROUTING&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295596#M56115</guid>
      <dc:creator>ktn01</dc:creator>
      <dc:date>2020-09-29T12:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward _internal to defaultGroup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295597#M56116</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I try&lt;/P&gt;

&lt;P&gt;_TCP_ROUTING = $defaultGroup&lt;/P&gt;

&lt;P&gt;_TCP_ROUTING = ""&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;_TCP_ROUTING =&lt;/P&gt;

&lt;P&gt;but it doesn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:47:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295597#M56116</guid>
      <dc:creator>ktn01</dc:creator>
      <dc:date>2020-09-29T12:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward _internal to defaultGroup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295598#M56117</link>
      <description>&lt;P&gt;Hi ktn01,&lt;BR /&gt;
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Route_inputs_to_specific_indexers_based_on_the_data.27s_input" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Route_inputs_to_specific_indexers_based_on_the_data.27s_input&lt;/A&gt;.&lt;BR /&gt;
at first you don't need to insert &lt;CODE&gt;_TCP_ROUTING = *&lt;/CODE&gt; when you want to route your events to all indexers because by default, when there isn't any  _TCP_ROUTING option, events are routed to al indexers (with growth of license consumption!).&lt;BR /&gt;
when you use _TCP_ROUTING  there isn't a default group.&lt;BR /&gt;
So, you have to:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;define in outputs.conf your tcpout stanzas: prod-group, valid-group or dev-group;&lt;/LI&gt;
&lt;LI&gt;copy all the stanzas with &lt;CODE&gt;index =  _internal&lt;/CODE&gt; from $SPLUNK_HOME/etc/system/default/inputs.conf in $SPLUNK_HOME/etc/system/local/inputs.conf;&lt;/LI&gt;
&lt;LI&gt;insert in every stanza &lt;CODE&gt;_TCP_ROUTING = prod-group&lt;/CODE&gt; (or valid-group or dev-group);&lt;/LI&gt;
&lt;LI&gt;restart Splunk.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Before to do this, evaluate what you want to do with the other internal Splunk index (_audit).&lt;/P&gt;

&lt;P&gt;bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295598#M56117</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward _internal to defaultGroup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295599#M56118</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I don't want to insert _TCP_ROUTING = "*". Splunk do it by default on app "Splunkforwarder". I don't want to modify the file on "default" directory.&lt;/P&gt;

&lt;P&gt;I way is probable to redefine _TCP_ROUTING on "local" directory. It's easy to redirect event to "prod-group" or "valid-group". But how do I have to define _TCP_ROUTING to send events to the output(s) defined as defaultGroup ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295599#M56118</guid>
      <dc:creator>ktn01</dc:creator>
      <dc:date>2020-09-29T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward _internal to defaultGroup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295600#M56119</link>
      <description>&lt;P&gt;Default is " to all indexers" : if you don't insert _TCP_ROUTING,  you send to all indexers, if you insert _TCP_ROUTING, you send to the selected indexer/s.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295600#M56119</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T12:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward _internal to defaultGroup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295601#M56120</link>
      <description>&lt;P&gt;I downvoted this post because it is not respecting the fact, that &lt;CODE&gt;_TCP_Routing = *&lt;/CODE&gt; is set by Splunk's default on Universal Forwarders as stated already in the question.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 16:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295601#M56120</guid>
      <dc:creator>goelli</dc:creator>
      <dc:date>2017-03-21T16:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward _internal to defaultGroup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295602#M56121</link>
      <description>&lt;P&gt;More details on how to managed logs for &lt;CODE&gt;_internal&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;The _internal index are populated by the following stanzas:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/default/inputs.conf
[monitor://$SPLUNK_HOME/var/log/splunk]
[monitor://$SPLUNK_HOME/etc/splunk.version]
$SPLUNK_HOME/apps/SplunkUniversalForwarder/default/inputs.conf
[monitor://$SPLUNK_HOME/var/log/splunk/splunkd.log]
[monitor://$SPLUNK_HOME/var/log/splunk/metrics.log]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If we want to forward the logs only to "prod-group" then create the following in &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/local/inputs.conf
[monitor://$SPLUNK_HOME/var/log/splunk]
_TCP_ROUTING = prod-group

[monitor://$SPLUNK_HOME/etc/splunk.version]
_TCP_ROUTING = prod-group

[monitor://$SPLUNK_HOME/var/log/splunk/splunkd.log]
_TCP_ROUTING = prod-group

[monitor://$SPLUNK_HOME/var/log/splunk/metrics.log]
_TCP_ROUTING = prod-group
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Dec 2017 14:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-internal-to-defaultGroup/m-p/295602#M56121</guid>
      <dc:creator>htidore</dc:creator>
      <dc:date>2017-12-13T14:05:41Z</dc:date>
    </item>
  </channel>
</rss>

