Splunk Enterprise

Why are we unable to send logs for HF to 2 indexes?

Maurice68
Loves-to-Learn

Hello. 

I'm trying to send log from heavy forwarder to 2 indexes. One is receiving logs, but the second is not.

Here is the props.conf file:

[test]
TRANSFORMS-routing=errorRouting,successRouting

 

Here is the outputs.conf file:

[tcpout:errorGroup]
server = 35.196.124.233:9997

[tcpout:successGroup]
server = 34.138.8.216:9997

 

Here is the transforms.conf file:

[errorRouting]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=errorGroup

[successRouting]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=successGroup

What could be the problem?

 

 

Labels (1)
0 Karma

Maurice68
Loves-to-Learn

Thank you.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

1. You're not trying to route to two indexes but to two indexers.

2. If you want the event to be sent to both those groups, you're gonna have to clone the event (maybe you can do it easier with ingest action). With your configuration the second transform overwrites the result of the first one so all your events will go to successGroup.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...