I would like to run a scheduled Splunk btool command using scripted input to index configs every few hours. I cannot put this command in .sh or any script file and give it as input to scripted input in Splunk due to limitation of running scripts on our Windows universal forwarders.
So, I have put path file under bin dir of app, and pointed the .path file in scripted input like
[Script//./bin/file.path]
And
The path file contains the below command:
/opt/splunk/bin/splunk cmd btool inputs list —debug
But it is not running the Splunk btool cmd when pointed from the .path file. It's not indexing data.
The path file can only point and run external scripts in .sh or .exe formats.
Is there any possibility to run the btool command on UFs without using .exe scripts on Windows in scheduled based by Splunk inputs?
My requirement is to index config data every day
↧