<?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: Couldn't run script command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81971#M20791</link>
    <description>&lt;P&gt;Actually, it is, based on the said reference.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Apr 2011 14:57:15 GMT</pubDate>
    <dc:creator>EdSplunk</dc:creator>
    <dc:date>2011-04-15T14:57:15Z</dc:date>
    <item>
      <title>Couldn't run script command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81968#M20788</link>
      <description>&lt;P&gt;Based on reference: &lt;A href="http://www.splunk.com/base/Documentation/4.2/SearchReference/Script" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.2/SearchReference/Script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I created a perl file that just outputs the arguments to a file. I called it test.pl and saved it under splunk_home/etc/searchscripts (I had to create the directory since it didn't exist).&lt;/P&gt;

&lt;P&gt;I built my search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;permit dst=192.* | stats count dst | script perl test.pl
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but I keep getting an error:&lt;/P&gt;

&lt;P&gt;Error in 'script' command: The external search command 'test.pl' does not exist in commands.conf.&lt;/P&gt;

&lt;P&gt;Can anyone point me in the right direction?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2011 04:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81968#M20788</guid>
      <dc:creator>EdSplunk</dc:creator>
      <dc:date>2011-04-15T04:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't run script command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81969#M20789</link>
      <description>&lt;P&gt;I don't believe perl is currently supported.  Only python.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2011 04:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81969#M20789</guid>
      <dc:creator>malbertdr</dc:creator>
      <dc:date>2011-04-15T04:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't run script command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81970#M20790</link>
      <description>&lt;P&gt;Based on the error, your script needs to be defined in &lt;CODE&gt;commands.conf&lt;/CODE&gt;, something similar to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test]
FILENAME = test.pl
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Commandsconf" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Commandsconf&lt;/A&gt; for details on &lt;CODE&gt;commands.conf&lt;/CODE&gt;, and &lt;A href="http://www.splunk.com/base/Documentation/latest/SearchReference/Aboutcustomsearchcommands" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/SearchReference/Aboutcustomsearchcommands&lt;/A&gt; for more details about defining your custom search command.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2011 04:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81970#M20790</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-04-15T04:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't run script command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81971#M20791</link>
      <description>&lt;P&gt;Actually, it is, based on the said reference.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2011 14:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81971#M20791</guid>
      <dc:creator>EdSplunk</dc:creator>
      <dc:date>2011-04-15T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't run script command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81972#M20792</link>
      <description>&lt;P&gt;The error message certainly suggests you need to put this in commands.conf. However, the documentation for &lt;CODE&gt;script&lt;/CODE&gt; doesn't mention that. Furthermore, having the script in commands.conf makes using the &lt;CODE&gt;script&lt;/CODE&gt; command redundant.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 08:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-run-script-command/m-p/81972#M20792</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2012-08-08T08:41:21Z</dc:date>
    </item>
  </channel>
</rss>

