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.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...