Getting Data In

curl command as .bat file in windows gives blank result

ips_mandar
Builder

Hi
I have created curl command to reload input . i have saved it in .bat file under splunk>bin>scripts path and my OS is windows also I set Path in environment variable for curl. Below is my command-

curl -k -u admin:<password> https://<ip>:8089/servicesNS/nobody/search/data/inputs//log_analytics/_reload > F:\test.txt

when I run this batch file manually it gives desired output. But when i run it as a script in splunk it gives blank result in test.txt...it seems Splunk is unable to get PATH which I set in environment variables ... so is there way where splunk can get path which I set.. or is it something else issue?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...