Splunk Enterprise

How to forward logs to a third-party system without affecting logs in Splunk

SamYap
Observer

I'm trying to forward logs base on index to a third-party system, and at the same time, I still need to retain the logs in Splunk. I've tried adding tcpout in outputs.conf, but it only pushing all logs to the third-party system, and doesn't store logs into Splunk. Unable to search new log in Splunk.

[tcpout]

defaultGroup=index1

 

[tcpout:index1]

sendCookedData=false (tried with and without this, both doesn't work)

server=1.1.1.1:12468

Labels (1)
0 Karma

burwell
SplunkTrust
SplunkTrust

Have a look at Replicate a subset of data to a third-party system

You can modify it and do something like this

props.conf
[your-sourcetype-here]
TRANSFORMS-routing = routeAll

transforms.conf
[routeAll]
REGEX=(.)
DEST_KEY=_TCP_ROUTING
FORMAT=yourIndexer,ThirdParty

outputs.conf
[tcpout]
defaultGroup=nothing

[tcpout:yourIndexer]
disabled=false
server=10.1.12.1:9997

[tcpout:ThirdParty]
disabled=false
sendCookedData=false
server=10.1.12.2:1234

 

isoutamo
SplunkTrust
SplunkTrust
Please remember that if any target will be stuck then another targets blocks as soon as queues on first / blocked target are full.
0 Karma
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!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...