<?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: Correct Location for Splunk Input Scripts and troubleshooting in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122628#M25377</link>
    <description>&lt;P&gt;Put it in &lt;CODE&gt;/opt/splunk/bin/scripts/&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2015 15:18:58 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-05-26T15:18:58Z</dc:date>
    <item>
      <title>Correct Location for Splunk Input Scripts and troubleshooting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122626#M25375</link>
      <description>&lt;P&gt;Hello all, &lt;BR /&gt;
I am testing Splunk's ability to use scripted output as a datasource and I am following this sequence of tutorials &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Setupcustominputs"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Setupcustominputs&lt;/A&gt; .&lt;BR /&gt;
I have created a top.sh dummy script (on OS X) following the example at the bottom of the document above, but unfortunately I cannot see any of the input from top.sh in Splunk. &lt;BR /&gt;
I've made sure to chmod the appropriate exec permissions to top.sh and it also works when I run it as a standalone script. &lt;BR /&gt;
Splunk logs tell me: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;05-26-2015 12:00:13.242 +0100 ERROR FrameworkUtils - Incorrect path to script: /opt/splunk/etc/apps/scripts/bin/top.sh.  Script must be located inside $SPLUNK_HOME/bin/scripts.
05-26-2015 12:00:13.242 +0100 ERROR ExecProcessor - Ignoring: "/opt/splunk/etc/apps/scripts/bin/top.sh"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried placing the script into the suggested directory, but this does not seem to make a difference.&lt;BR /&gt;
Can anyone give me some advice on how to troubleshoot this situation?&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 11:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122626#M25375</guid>
      <dc:creator>cmontonen</dc:creator>
      <dc:date>2015-05-26T11:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Location for Splunk Input Scripts and troubleshooting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122627#M25376</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
If you are planning to run scripts in "app" context the correct path would be:&lt;BR /&gt;
$SPLUNK_HOME/etc/apps/$APPLICATION/bin/&lt;/P&gt;

&lt;P&gt;Guessing from the error above, "scripts" is not recognized as an app. Does you install have a defined "scripts" app? If that's not the case, you will need to place your script in your bin directory:&lt;BR /&gt;
/opt/splunk/bin/top.sh&lt;/P&gt;

&lt;P&gt;If you have already placed the scripts here and it's still not working, can you provide the error you are seeing?&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 14:37:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122627#M25376</guid>
      <dc:creator>Yasaswy</dc:creator>
      <dc:date>2015-05-26T14:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Location for Splunk Input Scripts and troubleshooting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122628#M25377</link>
      <description>&lt;P&gt;Put it in &lt;CODE&gt;/opt/splunk/bin/scripts/&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 15:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122628#M25377</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-26T15:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Location for Splunk Input Scripts and troubleshooting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122629#M25378</link>
      <description>&lt;P&gt;A full answer is over at &lt;A href="https://answers.splunk.com/answers/716229/what-are-best-practices-for-referencing-a-scripted.html"&gt;What are best practices for referencing a scripted input from another app?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 21:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/122629#M25378</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2019-01-22T21:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Location for Splunk Input Scripts and troubleshooting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/546354#M91003</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;do the scripts you place in the&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;opt/splunk/bin/scripts Directory remain persistent after an upgrade?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you point me to documentation that explains?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 11:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correct-Location-for-Splunk-Input-Scripts-and-troubleshooting/m-p/546354#M91003</guid>
      <dc:creator>Jarohnimo</dc:creator>
      <dc:date>2021-04-01T11:39:41Z</dc:date>
    </item>
  </channel>
</rss>

