<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic curl command as .bat file in windows gives blank result in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/curl-command-as-bat-file-in-windows-gives-blank-result/m-p/429143#M75204</link>
    <description>&lt;P&gt;Hi &lt;BR /&gt;
I have created curl command to  reload input . i have saved it in .bat file under splunk&amp;gt;bin&amp;gt;scripts path and my OS is windows also I set Path in environment variable for curl. Below is my command-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:&amp;lt;password&amp;gt; &lt;A href="https://&amp;lt;ip&amp;gt;:8089/servicesNS/nobody/search/data/inputs//log_analytics/_reload" target="test_blank"&gt;https://&amp;lt;ip&amp;gt;:8089/servicesNS/nobody/search/data/inputs//log_analytics/_reload&lt;/A&gt; &amp;gt; F:\test.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;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?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2018 08:37:08 GMT</pubDate>
    <dc:creator>ips_mandar</dc:creator>
    <dc:date>2018-10-18T08:37:08Z</dc:date>
    <item>
      <title>curl command as .bat file in windows gives blank result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/curl-command-as-bat-file-in-windows-gives-blank-result/m-p/429143#M75204</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
I have created curl command to  reload input . i have saved it in .bat file under splunk&amp;gt;bin&amp;gt;scripts path and my OS is windows also I set Path in environment variable for curl. Below is my command-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:&amp;lt;password&amp;gt; &lt;A href="https://&amp;lt;ip&amp;gt;:8089/servicesNS/nobody/search/data/inputs//log_analytics/_reload" target="test_blank"&gt;https://&amp;lt;ip&amp;gt;:8089/servicesNS/nobody/search/data/inputs//log_analytics/_reload&lt;/A&gt; &amp;gt; F:\test.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 08:37:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/curl-command-as-bat-file-in-windows-gives-blank-result/m-p/429143#M75204</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2018-10-18T08:37:08Z</dc:date>
    </item>
  </channel>
</rss>

