<?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 Getting the error for rest handler &amp;quot;Python files must be in $SPLUNK_HOME/etc/apps/$MY_APP/bin/&amp;quot; on the indexer in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-the-error-for-rest-handler-quot-Python-files-must-be-in/m-p/457773#M79131</link>
    <description>&lt;P&gt;I have pushed the app through &lt;STRONG&gt;Cluster Master&lt;/STRONG&gt; onto indexers. My app contains &lt;STRONG&gt;multiple custom rest endpoints&lt;/STRONG&gt;. It needs to be installed on indexers. But when app pushed through aforementioned Cluster Master, it throws following error;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
2019-03-26 18:40:06,056 +0530 ERROR     \__init__:152 - The REST handler module "" could not be found.  Python files must be in $SPLUNK_HOME/etc/apps/$MY_APP/bin/&lt;BR /&gt;
2019-03-26 18:40:06,056 ERROR No module named &lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
I have exposed endpoints via &lt;STRONG&gt;restmap&lt;/STRONG&gt; and &lt;STRONG&gt;web&lt;/STRONG&gt; conf files and extended &lt;STRONG&gt;rest.BastRestHandler&lt;/STRONG&gt; for all the endpoints.&lt;BR /&gt;
I know that when app pushed through CM, it is stored in &lt;CODE&gt;$SPLUNK_HOME/etc/slave-apps&lt;/CODE&gt; on the peers. But the splunkd logs seems to say that all rest handler python files must be in &lt;CODE&gt;$SPLUNK_HOME/etc/apps/$MY_APP/bin/&lt;/CODE&gt;. Is it compulsory? Are there any ways around?&lt;BR /&gt;
Also, can I run scripted input on indexers?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 09:55:37 GMT</pubDate>
    <dc:creator>yashesh07</dc:creator>
    <dc:date>2019-03-28T09:55:37Z</dc:date>
    <item>
      <title>Getting the error for rest handler "Python files must be in $SPLUNK_HOME/etc/apps/$MY_APP/bin/" on the indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-the-error-for-rest-handler-quot-Python-files-must-be-in/m-p/457773#M79131</link>
      <description>&lt;P&gt;I have pushed the app through &lt;STRONG&gt;Cluster Master&lt;/STRONG&gt; onto indexers. My app contains &lt;STRONG&gt;multiple custom rest endpoints&lt;/STRONG&gt;. It needs to be installed on indexers. But when app pushed through aforementioned Cluster Master, it throws following error;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
2019-03-26 18:40:06,056 +0530 ERROR     \__init__:152 - The REST handler module "" could not be found.  Python files must be in $SPLUNK_HOME/etc/apps/$MY_APP/bin/&lt;BR /&gt;
2019-03-26 18:40:06,056 ERROR No module named &lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
I have exposed endpoints via &lt;STRONG&gt;restmap&lt;/STRONG&gt; and &lt;STRONG&gt;web&lt;/STRONG&gt; conf files and extended &lt;STRONG&gt;rest.BastRestHandler&lt;/STRONG&gt; for all the endpoints.&lt;BR /&gt;
I know that when app pushed through CM, it is stored in &lt;CODE&gt;$SPLUNK_HOME/etc/slave-apps&lt;/CODE&gt; on the peers. But the splunkd logs seems to say that all rest handler python files must be in &lt;CODE&gt;$SPLUNK_HOME/etc/apps/$MY_APP/bin/&lt;/CODE&gt;. Is it compulsory? Are there any ways around?&lt;BR /&gt;
Also, can I run scripted input on indexers?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 09:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-the-error-for-rest-handler-quot-Python-files-must-be-in/m-p/457773#M79131</guid>
      <dc:creator>yashesh07</dc:creator>
      <dc:date>2019-03-28T09:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the error for rest handler "Python files must be in $SPLUNK_HOME/etc/apps/$MY_APP/bin/" on the indexer</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-the-error-for-rest-handler-quot-Python-files-must-be-in/m-p/457774#M79132</link>
      <description>&lt;P&gt;log message above is truncated, below is the correct one;&lt;/P&gt;

&lt;P&gt;2019-03-26 18:40:06,056 +0530 ERROR _&lt;EM&gt;init&lt;/EM&gt;_:152 - The REST handler module "" could not be found. Python files must be in $SPLUNK_HOME/etc/apps/$MY_APP/bin/&lt;BR /&gt;
2019-03-26 18:40:06,056 ERROR No module named &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-the-error-for-rest-handler-quot-Python-files-must-be-in/m-p/457774#M79132</guid>
      <dc:creator>yashesh07</dc:creator>
      <dc:date>2020-09-29T23:49:56Z</dc:date>
    </item>
  </channel>
</rss>

