All Apps and Add-ons

Do we need to install the Universal forwarder in the host(Log originating Server) for scripted inputs?

raj_mpl
Path Finder

Hi All,

I need to forward some database related logs into splunk indexer using scripted inputs (Shell scripts)
My questions are :

1)Do I need to install the universal forwarder in the host side ?
2) If the scripts are present in a location of host in likewise path below
/splunkfwd/splunkforwarder/etc/apps/My_app/bin
Does that mean a universal forwarder is installed in it (Host)?
3)Is there any other way rather than installing UF in host that we can extract the logs into indexer using scripted inputs?
4)In order to accomplish this what are the steps do I need to follow ?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

1) To run a scripted input you need either a Universal Forwarder or a Heavy Forwarder. You'll need the HF to run a Python script.

2) Most likely, yes.

3) See @mguhad's answer.

4) See http://docs.splunk.com/Documentation/Forwarder/7.2.1/Forwarder/Abouttheuniversalforwarder

---
If this reply helps you, Karma would be appreciated.
0 Karma

mguhad
Communicator

You could be better served by using HEC (Agentless Inputs) WITHOUT using UFs (works well with automation scripts).

HEC uses a token-based authentication model. You can generate a token and then configure a logging library or HTTP client with the token to send data to HEC in a specific format. This process eliminates the need for a Splunk forwarder when you send application events.

More details can be found here: https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector

0 Karma
Get Updates on the Splunk Community!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...