Getting Data In

How can I route data to specific indexers using a heavy forwarder?

MAShawky
Explorer

I have a universal forwarder that sends 2 source types to heavy forwarder successfully. i need this heavy forwarder to route the received source types between 2 indexers.

My configurations on heavy forwarder is like below

props.conf

[cron]
 TRANSFORMS-routing=cron-route

[syslog]
 TRANSFORMS-routing=syslog-route

Transforms.conf

[cron-route]
DEST_KEY=_TCP_ROUTING
FORMAT=indexer-1

[syslog-route]
DEST_KEY=_TCP_ROUTING
FORMAT=indexer-2,indexer-1

outputs.conf

[tcpout:indexer-1]
server = 192.168.14.14:9997

[tcpout:indexer-2]
server = 192.168.14.15:9997

Thanks in advance

1 Solution

jcrabb_splunk
Splunk Employee
Splunk Employee

The document that discusses this can be found here:

http://docs.splunk.com/Documentation/Splunk/6.5.0/Forwarding/Routeandfilterdatad#Filter_and_route_ev...

At first glance, your configuration appears to be mostly right. I think you will also need to include the "REGEX" setting under each transforms.conf stanza.

[cron-route]
REGEX = (.)
DEST_KEY=_TCP_ROUTING
FORMAT=indexer-1

[syslog-route]
REGEX = (.)
DEST_KEY=_TCP_ROUTING
FORMAT=indexer-2,indexer-1

Try and and see if that works.

Jacob
Sr. Technical Support Engineer

View solution in original post

jcrabb_splunk
Splunk Employee
Splunk Employee

The document that discusses this can be found here:

http://docs.splunk.com/Documentation/Splunk/6.5.0/Forwarding/Routeandfilterdatad#Filter_and_route_ev...

At first glance, your configuration appears to be mostly right. I think you will also need to include the "REGEX" setting under each transforms.conf stanza.

[cron-route]
REGEX = (.)
DEST_KEY=_TCP_ROUTING
FORMAT=indexer-1

[syslog-route]
REGEX = (.)
DEST_KEY=_TCP_ROUTING
FORMAT=indexer-2,indexer-1

Try and and see if that works.

Jacob
Sr. Technical Support Engineer

MAShawky
Explorer

solved now,, thanks alot 🙂

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...