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.

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...