<?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: Can the heavy-forwarder send to multiple receivers? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155008#M31502</link>
    <description>&lt;P&gt;Thank you indeed. I know there's a lot of docs around.&lt;BR /&gt;
I have been reading these for days and was able to solve the most issues I had with upgrading a few outdated SPLUNK instances and moving from SyslogNG to heavy forwarders.&lt;/P&gt;

&lt;P&gt;What I am asking for is the concrete statements in the respective config-files as I'm having dificulties to find out.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 10 Dec 2014 08:44:44 GMT</pubDate>
    <dc:creator>ufotech</dc:creator>
    <dc:date>2014-12-10T08:44:44Z</dc:date>
    <item>
      <title>Can the heavy-forwarder send to multiple receivers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155005#M31499</link>
      <description>&lt;P&gt;The 6.2.0 heavy-forwarder is configured to send everything to the indexer xyz. Now I want it to send specific events to a localhost:tcp-port in raw-format. These events are identified by a reg-ex e.g. "/relevant-Message/".&lt;BR /&gt;
The 'relevant-message'-event is duplicated i.e. it is sent to the indexer &amp;amp; to the local tcp-port.&lt;/P&gt;

&lt;P&gt;Can this be done?&lt;BR /&gt;
Can you please give a config example for props, inputs and transforms on the heavy-forwarder?&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/.../logsink*.log]
disabled = false
index = otex
sourcetype = otex

[monitor:///var/log/.../audit*.log]
disabled = false
index = otex_audit
sourcetype = otex_audit

[monitor:///var/log/.../*.log]
disabled = false
index = main
_blacklist = /(logsink|audit).*
sourcetype = main
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
TRUNCATE = 250000

[main]
LINE_BREAKER = (\\n+|[\r\n])
BREAK_ONLY_BEFORE_DATE = false
SHOULD_LINEMERGE = false


[otex]
SEGMENTATION = full
SEGMENTATION-all = full
TRANSFORMS-otex-fields-1 = otex_fields_1
#split at "\n", \r or \n
LINE_BREAKER = (\\n+|[\r\n])
#merge lines that do not start with a Date
SHOULD_LINEMERGE = true
MAX_EVENTS = 1024
BREAK_ONLY_BEFORE_DATE = true
CHECK_METHOD = modtime
#date parsing
MAX_TIMESTAMP_LOOKAHEAD = 50
TIME_PREFIX = \[
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%Q
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = ch123.net:9960

[tcpout-server://ch123.net:9960]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[otex_fields_1]
REGEX = ^\[.*?\] \[(.*?)\] \[(.*?)\] \[(.*?)\] \[(.*?)\] \[(.*?)\] \[(.*?)\] \[(.*?)\] 
FORMAT = tid::"$1" hostname::"$2" component::"$3" instance::"$4" thread::"$5" level::"$6" logger::"$7" 
WRITE_META=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2014 22:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155005#M31499</guid>
      <dc:creator>ufotech</dc:creator>
      <dc:date>2014-12-08T22:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can the heavy-forwarder send to multiple receivers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155006#M31500</link>
      <description>&lt;P&gt;Read this,&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Forwarding/Setupforwardingandreceiving"&gt; Docs &lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Forwarding/Configureforwarderswithoutputs.confd"&gt; Output.conf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2014 22:54:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155006#M31500</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2014-12-08T22:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can the heavy-forwarder send to multiple receivers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155007#M31501</link>
      <description>&lt;P&gt;You would need to configure data routing so that specific data can be sent to specific Indexers. Read through  below documentation page. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2014 23:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155007#M31501</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-12-08T23:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can the heavy-forwarder send to multiple receivers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155008#M31502</link>
      <description>&lt;P&gt;Thank you indeed. I know there's a lot of docs around.&lt;BR /&gt;
I have been reading these for days and was able to solve the most issues I had with upgrading a few outdated SPLUNK instances and moving from SyslogNG to heavy forwarders.&lt;/P&gt;

&lt;P&gt;What I am asking for is the concrete statements in the respective config-files as I'm having dificulties to find out.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155008#M31502</guid>
      <dc:creator>ufotech</dc:creator>
      <dc:date>2014-12-10T08:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can the heavy-forwarder send to multiple receivers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155009#M31503</link>
      <description>&lt;P&gt;i.e.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;send events having this string: "relevant-message" to localhost:12345 in raw-format.&lt;/LI&gt;
&lt;LI&gt;forward all events (including the above!) to ch123.net:9960 (as in the configs above)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 10 Dec 2014 08:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155009#M31503</guid>
      <dc:creator>ufotech</dc:creator>
      <dc:date>2014-12-10T08:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can the heavy-forwarder send to multiple receivers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155010#M31504</link>
      <description>&lt;P&gt;@ufotech : were you able to solve this problem? Can you please share your solution to benefit others?&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 16:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155010#M31504</guid>
      <dc:creator>aanataliya</dc:creator>
      <dc:date>2018-05-18T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can the heavy-forwarder send to multiple receivers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155011#M31505</link>
      <description>&lt;P&gt;Cloning sample:&lt;BR /&gt;
This would send events to two different splunk indexers on the same box (server1), listening on different ports.&lt;/P&gt;

&lt;H1&gt;outputs.conf&lt;/H1&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = target1, target2&lt;/P&gt;

&lt;P&gt;[tcpout:target1]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
server = server1.net:9960&lt;/P&gt;

&lt;P&gt;[tcpout:target2]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
server = server1.net:29961&lt;/P&gt;

&lt;P&gt;Only if you want to send specific events to a specific target:&lt;/P&gt;

&lt;H1&gt;inputs.conf&lt;/H1&gt;

&lt;P&gt;[monitor://path/file1.log]&lt;BR /&gt;
_TCP_ROUTING = target1&lt;/P&gt;

&lt;P&gt;[monitor://path/file2.log]&lt;BR /&gt;
_TCP_ROUTING = target2&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-the-heavy-forwarder-send-to-multiple-receivers/m-p/155011#M31505</guid>
      <dc:creator>ufotech</dc:creator>
      <dc:date>2020-09-29T19:35:12Z</dc:date>
    </item>
  </channel>
</rss>

