Getting Data In

How can I send data from another machine to the machine running splunk Universal forwarder and then have the forwarder send it to the machine running the receiver?

epeeran
Observer

I have a Linux server running the universal forwarder I want another server send data to it and then have the forwarder redirect this data to the splunk receiver server

Tags (1)
0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

The Universal Forwarder has an inputs.conf just like the indexer.

You then tell the UF via inputs.conf where to look for it or listen for the data coming in.
As Lisa said, you can get it there any way you like.

It will then forward the data to the receiver following the configuration in outputs.conf

If getting the the new data to the current UF is complicated (ie, you'd have to write a script yourself, you don't want to use syslog, etc) consider putting another instance of UF where the data lives.

If you need to use another UF to send the data to your current forwarder you will set up your existing forwarder (the one that will send to the indexer) as an Intermediate Forwarder which will both forward and receive.

NEW UF(sender) -------------->(receiver) EXISTING UF (sender) ---------->INDEXER (receiver)

Since there is no web interface on the Universal Forwarder you have to set it up via the command line (which writes to the inputs.conf) or you can edit inputs.conf and add the stanza like this:
[splunktcp://9997]

The benefit there of course is that Splunk will now keep track of what has been sent and received in the event of a network outage.

All of this is nicely documented, step by step for every scenario. You can start reading here:

http://docs.splunk.com/Documentation/Splunk/5.0.2/Deploy/Introducingtheuniversalforwarder

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!

lguinn2
Legend

Getting data to the server running the Universal Forwarder is not part of Splunk. That said, a lot of people use syslog for things like this. Why can't the other machine also have the Universal Forwarder running on it?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...