Getting Data In

Can a scripted input be deployed on universal forwarders via deployment server?

RichaSingh
Path Finder

Hi,

I need inputs from a timely scheduled script from a remote server.

Can I configure this script on deployment server, placing the script in $SPLUNK_HOME$/deploymentapps/<app_name>/bin/ & the respective inputs, props, and other conf files in $SPLUNK_HOME$/deploymentapps/<app_name>/local/ . Then push these settings to respective hosts with Splunk universal forawrders installed

0 Karma

hamidseleman
New Member

Hi,
I know this thread has been quite sometimes but I'd like to share my answers in case it'd help others.
I've had success settings up scripted input running at an interval (in seconds) for UF v6.2.1 which is pretty simple:

  1. Make sure you place your script under folder ..//bin/scripts/ with proper execute permission (in case in linux)
  2. Configure scripted input inputs.conf pointing to the script correctly

Example

for script placement
..//bin/scripts/massage.sh

for inputs.conf configuration
[script://./bin/scripts/massage.sh]
sourcetype = mysourcetype
index = myindex
interval = 60.0
disabled = false

Make sure you placed above configs in your deployment server and perform deploy-server to push this to your HF.
This is with assumptions you've correctly setup the UF deploymentclients.conf, the outputs.conf and other neccessary setup accroding to your existing splunk architectural layout.

0 Karma

satishsdange
Builder

Possible. You can push Apps/TA (e.g. Windows Infra App, *nix app) which can have scripts using deployment server.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...