Splunk Enterprise

How to deploy a customized app via deployment server to execute a command?

pshelke
Observer

We want to deploy an custom app via deployment server which has to execute an command in all the universal forwarders. We tried to create a app with the command but it is not reading the same and throwing warning message in splunkd.log as below.

 

WARN : cannot parse into key-value pair.

 

 

Labels (1)
0 Karma

batabay
Path Finder

Hi,
That is possible. for windows uf's  inputs.conf;

[script://.\\bin\\script.bat]
disabled = False
interval = 43200

 

For linux uf's; inputs.conf

[script://.\\bin\\script.sh]
disabled = False
interval = 43200

 

Finally ; 

You must put script in bin folder same app.

Example bin folder;

custom_app/bin/script.bat

custom_app/bin/script.sh

Example local folder;

custom_app/local/inputs.conf

must be like above.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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