<?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: Custom modules not loading in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37653#M178661</link>
    <description>&lt;P&gt;fwiw I found the mistake I'd made that was preventing them from loading.  In the &lt;MODULENAME&gt;.conf file I listed the classname as &lt;MODULENAME&gt;  instead of Splunk.Module.&lt;MODULENAME&gt; . Once i fixed that they worked like a charm.&lt;/MODULENAME&gt;&lt;/MODULENAME&gt;&lt;/MODULENAME&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2010 13:20:37 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2010-09-01T13:20:37Z</dc:date>
    <item>
      <title>Custom modules not loading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37650#M178658</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have created some custom modules, but receive warnings that the module cannot be found when opening the view containing the modules.&lt;/P&gt;

&lt;P&gt;Originally the modules where created under the following directories:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/share/splunk/search_mrsparkle/modules/search/mod1.conf
$SPLUNK_HOME/share/splunk/search_mrsparkle/modules/search/mod1.js
$SPLUNK_HOME/share/splunk/search_mrsparkle/modules/prototype/mod2.conf
$SPLUNK_HOME/share/splunk/search_mrsparkle/modules/prototype/mod2.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The modules showed up under splunk.xxx.com:8000/modules and modules loaded correctly when the view was loaded.&lt;/P&gt;

&lt;P&gt;I then moved the modules to the app directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/myapp/appserver/modules/mod1.conf
$SPLUNK_HOME/etc/apps/myapp/appserver/modules/mod1.js
$SPLUNK_HOME/etc/apps/myapp/appserver/modules/mod2.conf
$SPLUNK_HOME/etc/apps/myapp/appserver/modules/mod2.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The modules showed up under splunk.xxx.com:8000/modules with the new paths, but when loading the view containing them I get the error - Splunk encountered the following unknown module: "mod1" . The view may not load properly.&lt;/P&gt;

&lt;P&gt;Next I moved the modules back to the share directory, but under a new sub directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/share/splunk/search_mrsparkle/modules/mymods/mod1.conf
$SPLUNK_HOME/share/splunk/search_mrsparkle/modules/mymods/mod1.js
$SPLUNK_HOME/share/splunk/search_mrsparkle/modules/mymods/mod2.conf
$SPLUNK_HOME/share/splunk/search_mrsparkle/modules/mymods/mod2.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Again the modules showed up under splunk.xxx.com:8000/modules with the new paths, but when loading the view containing the modules I get the same error message as above.&lt;/P&gt;

&lt;P&gt;When I moved the modules back to the original directories where they where developed all worked fine again.&lt;/P&gt;

&lt;P&gt;Can any one tell me what I am doing wrong?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Joon&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 14:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37650#M178658</guid>
      <dc:creator>joonradley</dc:creator>
      <dc:date>2010-08-26T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom modules not loading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37651#M178659</link>
      <description>&lt;P&gt;I have not been able to get custom modules working either, and im similarly baffled.  sorry i cant help but im also interested.  I know people have done it so maybe they can see what you/we are doing wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2010 08:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37651#M178659</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-08-27T08:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom modules not loading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37652#M178660</link>
      <description>&lt;P&gt;I was able to get a custom mod working after much hair pulling however it was touch ago go every step of the way.  &lt;/P&gt;

&lt;P&gt;This is what I have for a file layout:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;First Mod&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./etc/apps/prophecy-premise/appserver/modules/VAppBar/VAppBar.conf
./etc/apps/prophecy-premise/appserver/modules/VAppBar/VAppBar.css
./etc/apps/prophecy-premise/appserver/modules/VAppBar/VAppBar.html
./etc/apps/prophecy-premise/appserver/modules/VAppBar/VAppBar.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Second Mod&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./etc/apps/prophecy-premise/appserver/modules/VTitleBar/VTitleBar.conf
./etc/apps/prophecy-premise/appserver/modules/VTitleBar/VTitleBar.css
./etc/apps/prophecy-premise/appserver/modules/VTitleBar/VTitleBar.html
./etc/apps/prophecy-premise/appserver/modules/VTitleBar/VTitleBar.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I put each mod in it's own folder in order to get it to load. I am pretty sure this is critical for it to work. &lt;/P&gt;

&lt;P&gt;Please note that the JS script is VERY VERY finicky. If there are any errors whatsoever in your code it will silently fail with the error you are seeing above. &lt;/P&gt;

&lt;P&gt;My pain and suffering is documented on the answers page over at &lt;A href="http://answers.splunk.com/questions/4480/how-to-get-rid-of-warning-for-custom-modules" rel="nofollow"&gt;How to get rid of warning for custom modules?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2010 10:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37652#M178660</guid>
      <dc:creator>zscgeek</dc:creator>
      <dc:date>2010-08-27T10:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom modules not loading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37653#M178661</link>
      <description>&lt;P&gt;fwiw I found the mistake I'd made that was preventing them from loading.  In the &lt;MODULENAME&gt;.conf file I listed the classname as &lt;MODULENAME&gt;  instead of Splunk.Module.&lt;MODULENAME&gt; . Once i fixed that they worked like a charm.&lt;/MODULENAME&gt;&lt;/MODULENAME&gt;&lt;/MODULENAME&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2010 13:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37653#M178661</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-09-01T13:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom modules not loading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37654#M178662</link>
      <description>&lt;P&gt;Thank you for your responses.&lt;/P&gt;

&lt;P&gt;I thought I would just give feedback on your suggestions.&lt;/P&gt;

&lt;P&gt;@zscgeek:  Your suggestion of placing each module in its won directory using the module name as the directory name did not work for me. I tried different capitulation. Neither did the module named directories work under the share/splunk/mr_sparkle/ modules direrctory.&lt;/P&gt;

&lt;P&gt;@zscgeek: The javascript works 100% when the modules are placed under the normal directories.&lt;/P&gt;

&lt;P&gt;@nick: In my case the class name is already Splunk.Module.&amp;lt;modulename&amp;gt;.&lt;/P&gt;

&lt;P&gt;I will work try again to resolve this next month when we work on the second version of the app.  &lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2010 15:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37654#M178662</guid>
      <dc:creator>joonradley</dc:creator>
      <dc:date>2010-09-06T15:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom modules not loading</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37655#M178663</link>
      <description>&lt;P&gt;I know it has been years, but for the record another thing that can seriously cause confusion, is that if you have &lt;EM&gt;any&lt;/EM&gt; other app installed that has a directory by that name inside appserver, and a partial set of files therein, or a modulename.conf file in it with a typo,    Splunk is very bad about logging anything about the duplicate module and both versions of the module will just quietly die.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2014 23:49:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-modules-not-loading/m-p/37655#M178663</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2014-03-06T23:49:04Z</dc:date>
    </item>
  </channel>
</rss>

