<?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 Remove path from scripted input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Remove-path-from-scripted-input/m-p/25609#M4176</link>
    <description>&lt;P&gt;I setup a scripted input pointing to a .bat file which runs a curl request. But instead of only ingesting the output of the command that's run, splunk gets everything from the shell, including the current directory. How do I only get the output of the command, ignoring the actual command?  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\WINDOWS\system32&amp;gt;C:\curl\curl.exe &lt;A href="http://search.twitter.com/search.json?q=blah" target="test_blank"&gt;http://search.twitter.com/search.json?q=blah&lt;/A&gt;
----output of command is here----
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Aug 2012 21:48:03 GMT</pubDate>
    <dc:creator>beaunewcomb</dc:creator>
    <dc:date>2012-08-03T21:48:03Z</dc:date>
    <item>
      <title>Remove path from scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-path-from-scripted-input/m-p/25609#M4176</link>
      <description>&lt;P&gt;I setup a scripted input pointing to a .bat file which runs a curl request. But instead of only ingesting the output of the command that's run, splunk gets everything from the shell, including the current directory. How do I only get the output of the command, ignoring the actual command?  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\WINDOWS\system32&amp;gt;C:\curl\curl.exe &lt;A href="http://search.twitter.com/search.json?q=blah" target="test_blank"&gt;http://search.twitter.com/search.json?q=blah&lt;/A&gt;
----output of command is here----
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Aug 2012 21:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-path-from-scripted-input/m-p/25609#M4176</guid>
      <dc:creator>beaunewcomb</dc:creator>
      <dc:date>2012-08-03T21:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove path from scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-path-from-scripted-input/m-p/25610#M4177</link>
      <description>&lt;P&gt;Splunk is ingesting exactly what your batch file writes to its standard output.  So, your question really is one of the form "how do I make my batch file not echo every command?"  There's a really old solution for that.  Put a line with&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;@echo off
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;at the top of your batch file .. should make all the difference.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2012 12:29:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-path-from-scripted-input/m-p/25610#M4177</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-08-04T12:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove path from scripted input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Remove-path-from-scripted-input/m-p/25611#M4178</link>
      <description>&lt;P&gt;Duh. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 15:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Remove-path-from-scripted-input/m-p/25611#M4178</guid>
      <dc:creator>beaunewcomb</dc:creator>
      <dc:date>2012-08-07T15:36:54Z</dc:date>
    </item>
  </channel>
</rss>

