Getting Data In

Is it possible to ingest the events into two different HEC endpoints with Splunk forwarder?

rsahoo
Engager

Splunk forwarder is running in the host and sending the audit logs to Splunk instances through HEC. Now i want to send debug logs to another instance through another HEC end point. Is that possible to configure to HEC end points in Splunk forwarder?

Labels (1)
0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

I would say use outputs.conf to do data cloning. 

[tcpout]
defaultGroup=my_instance1, my_instance2

[tcpout:my_instance1]
server=<instance_1_ip>:9997

[tcpout:my_instance2]
server=<instance_2_ip>:9997

[tcpout-server://<instance_1_ip>:9997]

[tcpout-server://<instance_2_ip>:9997]

https://docs.splunk.com/Documentation/Forwarder/8.2.4/Forwarder/Configureforwardingwithoutputs.conf 

 

Ofcourse this will send all data to both the Splunk instance. If you wish to do just for that HEC input, you can use TCP_ROUTING.

Reference to implement TCP rounting - https://docs.splunk.com/Documentation/Splunk/8.2.4/Forwarding/Routeandfilterdatad

 

PickleRick
SplunkTrust
SplunkTrust

Judging from the docs, you could do the data cloning only with plain tcp outputs. Httpout doesn't seem to support multiple destinations.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...