Getting Data In

How can I clone data from a HF to two different splunk instances?

lucacaldiero
Path Finder

How can I clone data from a HF to two different splunk instances? Doubling defaultgroup in outputs.conf does not work.

 

 

 

#splunk #clone #heavyforwarder

Labels (1)
0 Karma

PrewinThomas
Motivator

@lucacaldiero 

If you want to clone all data from the Heavy Forwarder to both destinations, this should be sufficient.

[tcpout]
defaultGroup = newgroup,oldgroup

[tcpout:newgroup]
server = xxxx.xxxx.xxxx:9997

[tcpout:oldgroup]
server = xx.xx.xx.xx:9997


Regards,
Prewin
If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @lucacaldiero ,

a people from Splunk Support said to me that this solution shouldn't run, but I used it with success:

outputs.conf
[tcpout:newgroup]
server=server = xxxx.xxxx.xxxx.:9997

[tcpout:oldgroup]
server=xx.xx.xx.xx:9997

Don't use defaultGroup.

In this way, you send all logs to both the destinations.

Ciao.

Giuseppe

0 Karma

lucacaldiero
Path Finder

is something like this correct?

props.conf
[default]
TRANSFORMS-routing=alldata

transforms.conf
[alldata]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=newgroup

outputs.conf
[tcpout]
defaultGroup=oldgroup

[tcpout:newgroup]
server=server = xxxx.xxxx.xxxx.:9997

[tcpout:oldgroup]
server=xx.xx.xx.xx:9997

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @lucacaldiero 

In your transforms.conf you would need to have both groups in the _TCP_ROUTING:

[alldata]
REGEX=.
DEST_KEY=_TCP_ROUTING
FORMAT=newgroup,oldgroup

This will also only work for data ingested directly on the UF, or sent to it from a UF as otherwise it would arrive already parsed, however setting both groups in outputs.conf should work I think - how come this didnt work for you?

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

 

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!

(re)Introducing the Splunk Community Champions + 2026 – 2027 Splunk MVPs ...

This program exists as a channel to empower and recognize Splunk advocates and help supercharge initiatives to ...

Introducing the 2026 - 2027 SplunkTrust cohort!

The goal of the SplunkTrust™ membership has historically been to acknowledge and recognize those who go above ...

Pro Tips for .conf26: How to Prep Like a Splunk Veteran

There’s no shortage of incredible content lined up for .conf26 in Denver, from deep-dive technical sessions ...