<?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: HF different index names for each target group in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HF-different-index-names-for-each-target-group/m-p/397126#M70790</link>
    <description>&lt;P&gt;@stephenmuss have you been able to find a solution? I'm facing the same challenge.&lt;/P&gt;</description>
    <pubDate>Wed, 06 May 2020 09:43:11 GMT</pubDate>
    <dc:creator>progre55</dc:creator>
    <dc:date>2020-05-06T09:43:11Z</dc:date>
    <item>
      <title>HF different index names for each target group</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HF-different-index-names-for-each-target-group/m-p/397125#M70789</link>
      <description>&lt;P&gt;I have a Splunk enterprise cluster which also needs to forward some logs to a completely separate Splunk cluster.&lt;/P&gt;

&lt;P&gt;I couldn't easily find a way in my heavy forwarder config to sends logs locally to one index and to another index in the remote cluster.&lt;/P&gt;

&lt;P&gt;In my outputs.conf I have &lt;CODE&gt;[tcpout:local]&lt;/CODE&gt; and &lt;CODE&gt;[tcpout:remote]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;My props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
TRANSFORMS-routing = remote-routing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[remote-routing]
REGEX = .
DEST_KEY = _TCP_ROUTING
# route to local Splunk and remote Splunk
FORMAT = local,remote
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I update this so that locally logs go to a &lt;CODE&gt;syslog&lt;/CODE&gt; index (the default) and in the remote Splunk they go to an index &lt;CODE&gt;syslog_xyz&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 01:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HF-different-index-names-for-each-target-group/m-p/397125#M70789</guid>
      <dc:creator>stephenmuss</dc:creator>
      <dc:date>2019-04-03T01:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: HF different index names for each target group</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HF-different-index-names-for-each-target-group/m-p/397126#M70790</link>
      <description>&lt;P&gt;@stephenmuss have you been able to find a solution? I'm facing the same challenge.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 09:43:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HF-different-index-names-for-each-target-group/m-p/397126#M70790</guid>
      <dc:creator>progre55</dc:creator>
      <dc:date>2020-05-06T09:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: HF different index names for each target group</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HF-different-index-names-for-each-target-group/m-p/397127#M70791</link>
      <description>&lt;P&gt;You'll need to use syslog stanzas in outputs.conf instead of tcp.&lt;/P&gt;

&lt;P&gt;Such as this example taken from the documentation:&lt;BR /&gt;
    [syslog]&lt;BR /&gt;
    defaultGroup=everythingElseGroup&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog:syslogGroup]
server = 10.1.1.197:9997

[syslog:errorGroup]
server=10.1.1.200:9999

[syslog:everythingElseGroup]
server=10.1.1.250:6666
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Though you'll also want to set type = tcp as udp is the default.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Admin/Outputsconf#Syslog_output----"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Admin/Outputsconf#Syslog_output----&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HF-different-index-names-for-each-target-group/m-p/397127#M70791</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2020-05-06T14:41:46Z</dc:date>
    </item>
  </channel>
</rss>

