<?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: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk. in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91100#M3337</link>
    <description>&lt;P&gt;There is no path to input.  I'm placing the script in the path I have specified above.  Then I'm specifying the name of that script in the field provided by Splunk UI.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2013 19:04:35 GMT</pubDate>
    <dc:creator>the_wolverine</dc:creator>
    <dc:date>2013-04-12T19:04:35Z</dc:date>
    <item>
      <title>Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91092#M3329</link>
      <description>&lt;P&gt;I have a script the location specified above which is the SH Pool.  The SH Pool is configured and working in all other aspects.  However, the script can not be located by Splunk and I see the following error:&lt;/P&gt;

&lt;P&gt;04-11-2013 19:15:27.782 +0000 ERROR script - command="runshellscript", Cannot find script at /opt/splunk/bin/scripts/myscript.sh&lt;/P&gt;

&lt;P&gt;As a workaround, I have moved a copy of the script to the local directory on each search head.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2013 19:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91092#M3329</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2013-04-11T19:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91093#M3330</link>
      <description>&lt;P&gt;If your script is referenced using a path based on $SPLUNK_HOME, then it won't work on search head pooling because the $SPLUNK_HOME variable won't point to the shared storage location. Make the path relative and it should work. See below for an example of a inputs.conf entry:&lt;/P&gt;

&lt;P&gt;This won't work on search-head pooling :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME/etc/apps/someapp/bin/myscript.sh]
disabled = false
interval = 0 0 * * 3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will work on search-head pooling:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/myscript.sh]
disabled = false
interval = 0 0 * * 3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From what I can tell, your are using &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Runshellscript"&gt;runshellscript&lt;/A&gt; which is no longer supported by Splunk. There might be a better way to execute your script using supported solutions that work with search-head pooling.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2013 20:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91093#M3330</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-04-11T20:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91094#M3331</link>
      <description>&lt;P&gt;What is the purpose of the script? The solution is a little different based on what the script is intended to do.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2013 20:38:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91094#M3331</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-04-11T20:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91095#M3332</link>
      <description>&lt;P&gt;The script is a simple bash script that is triggered by scheduled search.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91095#M3332</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2013-04-12T17:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91096#M3333</link>
      <description>&lt;P&gt;That was a bad example.  I use relative path in my script.  The runshellcommand is used by Splunk when a script is triggered via scheduled search.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91096#M3333</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2013-04-12T17:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91097#M3334</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/55"&gt;@the_wolverine&lt;/a&gt;: You'll need to use the absolute path to the shared storage location or a relative path. The original question indicated that $SPLUNK_HOME was used and this won't work. The point of the example was to illustrate incorrect versus correct path usage.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91097#M3334</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2020-09-28T13:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91098#M3335</link>
      <description>&lt;P&gt;Are you using the absolute path to the shared storage location?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 17:57:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91098#M3335</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-04-12T17:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91099#M3336</link>
      <description>&lt;P&gt;I'm curious.  What other supported solution for what I'm trying do might exist?  I'm triggering a script using a scheduled search and inputing the script name in the field provided in Splunk UI for such script.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 18:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91099#M3336</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2013-04-12T18:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91100#M3337</link>
      <description>&lt;P&gt;There is no path to input.  I'm placing the script in the path I have specified above.  Then I'm specifying the name of that script in the field provided by Splunk UI.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 19:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91100#M3337</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2013-04-12T19:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91101#M3338</link>
      <description>&lt;P&gt;Turns out the issue was with the location of that script.  I moved the script to SH_POOL/etc/apps/search/bin/&lt;STRONG&gt;scripts&lt;/STRONG&gt;/ and it is working now.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 19:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91101#M3338</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2013-04-12T19:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91102#M3339</link>
      <description>&lt;P&gt;Ah, I gotcha. So your not using runshellcommand directly, Splunk is using it for you. That makes more sense. That should be supported. Direct use of that command is not (which I incorrectly thought you were doing).&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 19:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91102#M3339</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-04-12T19:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91103#M3340</link>
      <description>&lt;P&gt;When you use a relative path, does Splunk list the absolute path in the error message? I'm curious as to why Splunk isn't converting that to the path on the shared storage where the script presumably is. Also, what happens if you use an absolute path to the script on the shared storage location?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 19:28:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91103#M3340</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-04-12T19:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script placed in SH Pool .../SH_POOL/etc/apps/search/bin/ directory is not found by Splunk.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91104#M3341</link>
      <description>&lt;P&gt;I wondered if the path was just wrong. That makes sense now. Thanks for posting the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 19:44:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Script-placed-in-SH-Pool-SH-POOL-etc-apps-search-bin-directory/m-p/91104#M3341</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-04-12T19:44:16Z</dc:date>
    </item>
  </channel>
</rss>

