Deployment Architecture

Forwarding vs. Receiving - Local Inputs vs. Forwarded inputs

eholz1
Builder

Hello All,
This forum is a great help. I had yet to resolve an issue with splunk forwarding and receiving.
I have a universal forwarder installed on a linux machine. I have a splunk enterprise instance on a different linux machine.
What is the correct way to get forwarded data from the forwarding machine to the receiver?
I have the forwarder set to send data from a log file via port 997, and have an index name in the outputs.conf file

There seems to be two (at least two) ways to get this data on the receiver: create a local input from the Data Inputs option,
or create the same type of capability from the "Forwarded Inputs" section of the Data Inputs area. This never seems to work.

The only way I can get data in is by NOT setting up a receiver, and configuring a "local" connection to port 9997 to listen for data
from the forwarder.

I also read where the data needs to be compressed on both the forwarder and the receiver - I see I can add a line to forwarder outputs.conf : compressed = true, would I have to do the same thing for the inputs.conf on the receiving splunk instance?

thanks for a very interesting product,

eholz1

0 Karma
1 Solution

anthonymelita
Contributor

Both of the options you mention for creating Data Inputs are mechanisms for generating an "inputs.conf" file/entry. This is what tells the splunkd process to read a file. So what you have done with creating the TCP listener for 9997 is the correct portion of Receiving data. It's telling your Splunk Enterprise instance that remote forwarders will send data over that channel.
Have a read through the documentation for a better understanding. Splunk® Enterprise
Getting Data In

View solution in original post

0 Karma

anthonymelita
Contributor

Both of the options you mention for creating Data Inputs are mechanisms for generating an "inputs.conf" file/entry. This is what tells the splunkd process to read a file. So what you have done with creating the TCP listener for 9997 is the correct portion of Receiving data. It's telling your Splunk Enterprise instance that remote forwarders will send data over that channel.
Have a read through the documentation for a better understanding. Splunk® Enterprise
Getting Data In

0 Karma
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...