<?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 Re: syntax for scripted input in inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/syntax-for-scripted-input-in-inputs-conf/m-p/92257#M19172</link>
    <description>&lt;P&gt;You can parameterize the scripted inputs. I've used this several times. So if you configure the scripted input this way&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/runmycmd.sh cmd]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the value "cmd" will be avaiable to the script in the variable &lt;CODE&gt;$1&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2010 20:40:32 GMT</pubDate>
    <dc:creator>ziegfried</dc:creator>
    <dc:date>2010-11-19T20:40:32Z</dc:date>
    <item>
      <title>syntax for scripted input in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syntax-for-scripted-input-in-inputs-conf/m-p/92256#M19171</link>
      <description>&lt;P&gt;Am I correct in thinking that&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/runmycmd.sh cmd]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;will not work?&lt;/P&gt;

&lt;P&gt;I'd like to be able to hand the variable cmd to runmycmd...&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2010 09:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syntax-for-scripted-input-in-inputs-conf/m-p/92256#M19171</guid>
      <dc:creator>bfaber</dc:creator>
      <dc:date>2010-11-19T09:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for scripted input in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syntax-for-scripted-input-in-inputs-conf/m-p/92257#M19172</link>
      <description>&lt;P&gt;You can parameterize the scripted inputs. I've used this several times. So if you configure the scripted input this way&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/runmycmd.sh cmd]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the value "cmd" will be avaiable to the script in the variable &lt;CODE&gt;$1&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2010 20:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syntax-for-scripted-input-in-inputs-conf/m-p/92257#M19172</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2010-11-19T20:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for scripted input in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/syntax-for-scripted-input-in-inputs-conf/m-p/92258#M19173</link>
      <description>&lt;P&gt;This worked.  A warning for all, 'cmd' had to be the full path to the cmd file.  For instance $SPLUNK_HOME/etc/apps/appname/bin/cmd&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2010 11:14:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/syntax-for-scripted-input-in-inputs-conf/m-p/92258#M19173</guid>
      <dc:creator>bfaber</dc:creator>
      <dc:date>2010-11-25T11:14:46Z</dc:date>
    </item>
  </channel>
</rss>

