Getting Data In

How do I configure the outputs.conf file to forward data into two separate instances of Splunk?

dchima
Path Finder

Hello Splunk user community,

i have Linux VMS that are already reporting into a Splunk enterprise instance using a universal forwarder (UF). I recently set up a Splunk POC instance and would like to leverage the existing UFs to fork that data into my Splunk POC simultaneously.

To be specific, i'm implementing the collectd daemon for the 1st time to support a Splunk application. It attempts to deploy the UF and if one is already present, it ignores the UF but does install the collectd.

i know of the outputs.conf and using stanzas, but I just need the syntax to make this happen. This is what i currently have and i need to add to it...

[t-splunk@lgtisplunk1 ~]$ cat /apps/splunk/etc/system/local/outputs.conf
[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = lgtisplunk1.calpers.ca.gov:9997

[tcpout-server://lgtisplunk1.calpers.ca.gov:9997]

thank you,
david

0 Karma
1 Solution

gjanders
SplunkTrust
SplunkTrust
0 Karma

dchima
Path Finder

thank you all

0 Karma

Rob2520
Communicator

Looking for something like this to happen?

Route inputs to specific indexers based on the data input
In this scenario, you use inputs.conf and outputs.conf to route data to specific indexers, based on the data's input. Universal and light forwarders can perform this kind of routing.

Here's an example that shows how this works.

In outputs.conf, create stanzas for each receiving indexer:
[tcpout:systemGroup]
server=server1:9997

[tcpout:applicationGroup]
server=server2:9997

In inputs.conf, specify _TCP_ROUTING to set the stanza in outputs.conf that each input should use for routing:
[monitor://.../file1.log]
index=
sourcetype=
_TCP_ROUTING = systemGroup

[monitor://.../file2.log]
index=
sourcetype=
_TCP_ROUTING = applicationGroup

The forwarder routes data from file1.log to server1 and data from file2.log to server2.

For more information https://docs.splunk.com/Documentation/Splunk/7.1.3/Forwarding/Routeandfilterdatad

0 Karma

gjanders
SplunkTrust
SplunkTrust
0 Karma

gjanders
SplunkTrust
SplunkTrust

Just note that props/transforms will need to be in the heavy forwarder or indexer in most cases, so that second link relates to a Splunk enterprise instance for routing data (in the majority of cases)

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!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Skip the Awkward Silence: Have a .conf-ersation at .conf26

Picture this. You arrive at .conf26 already having your socializing and networking plans mapped out. No ...

Rethinking Zero Trust: From Product Purchases to Logical Control Evidence

Implementing Zero Trust (ZT) across complex environments often falters at the very beginning due to a ...