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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...