Getting Data In

Unique universal forwarder to multiple destinations

Flobzh
Explorer

Hello,

Is it possible to have only 1 Universal Forwarder installed on a Windows server and this UF sends data to 2 different Splunk instances

Ex:

1- Source: IIS logs -> Dest = SplunkCloud

2- Source: event viewer data -> Dest = On Premise Splunk Enterprise

If yes can you point to an article that help setup this?

Other possible constraint: we have a deployment server that should allow to setup both flow.

 

Thanks for your help

Labels (2)
0 Karma
1 Solution

livehybrid
SplunkTrust
SplunkTrust

In fact, if its specific data sources which you want to send to different places then you wont need to touch props/transforms - instead you can set _TCP_ROUTING in your inputs.conf stanzas, setting the value to be the output group that you want to use, for example:

== inputs.conf ==
[monitor:///some/path/someFile.log]
index=someIndex
sourcetype=myAppLogs
_TCP_ROUTING=myOnPremOutputGroup

[monitor:///some/path/IIS/logs]
index=iis_logs
sourcetype=iis:logs
_TCP_ROUTING=mySplunkCloudOutputGroup

Also worth reading https://community.splunk.com/t5/Getting-Data-In/Issue-with-default-outputs-when-TCP-ROUTING/m-p/5097...

🌟 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

View solution in original post

0 Karma

isoutamo
SplunkTrust
SplunkTrust

In UF you should define those two different outputs groups. Then you just add into your inputs.conf in every inputs, which doesn’t use default output group

_TCP_ROUTING = <your additional output group>

https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf

If you need some routing based on content of events then you must add HF (heavy forwarder) after UF and then you can route it as @livehybrid shows.

0 Karma

livehybrid
SplunkTrust
SplunkTrust

In fact, if its specific data sources which you want to send to different places then you wont need to touch props/transforms - instead you can set _TCP_ROUTING in your inputs.conf stanzas, setting the value to be the output group that you want to use, for example:

== inputs.conf ==
[monitor:///some/path/someFile.log]
index=someIndex
sourcetype=myAppLogs
_TCP_ROUTING=myOnPremOutputGroup

[monitor:///some/path/IIS/logs]
index=iis_logs
sourcetype=iis:logs
_TCP_ROUTING=mySplunkCloudOutputGroup

Also worth reading https://community.splunk.com/t5/Getting-Data-In/Issue-with-default-outputs-when-TCP-ROUTING/m-p/5097...

🌟 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

livehybrid
SplunkTrust
SplunkTrust

Hi @Flobzh 

Yes you can achieve this with multiple output groups in your outputs.conf and then props/transforms.conf to filter as required.

For more details documentation and examples check out https://docs.splunk.com/Documentation/SplunkCloud/latest/Forwarding/Routeandfilterdatad

🌟 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

Flobzh
Explorer

Thanks, I'll look into this and confirm the behavior.

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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...