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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...