Splunk Search

How do I run the Splunk CLI command using the scripted input and the path file?

ankithreddy777
Contributor

We have Windows servers blocked for executing batch scripts.

So, how do I run the below Splunk CLI command scheduled everyday on universal forwarders and index that data?
Splunk btool inputs list --debug

I thought to create a scripted input and use the .path file to run the command, but it is not working.

inputs.conf
[script://.\bin\xyz.path]

And create a path file xyz.path under bin directory of the app.

xyz.path contails below line

$SPLUNK_HOME\bin\splunk btool inputs list --debug

Is there any other way to do it on UF's

0 Karma

prakash007
Builder

Check this Splunk answer, and it seems the same question has been repeated here..

https://answers.splunk.com/answers/708443/splunk-scripted-input-to-run-a-btool-command-witho.html#an...

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...