<?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: Building module or controller in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45743#M586</link>
    <description>&lt;P&gt;It sounds like you should take a look at how the *nix app was built, it supports such a checkbox-driven configuration.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2013 18:45:56 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-02-27T18:45:56Z</dc:date>
    <item>
      <title>Building module or controller</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45742#M585</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;I recently started to use Splunk and it is amazing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'm consuming documentation as much as possible, but I found a couple things confusing so would be grateful if someone can direct me or explain a couple of things.&lt;/P&gt;

&lt;P&gt;I have installation that monitors some things, devices and etc. and I need to add ability user can configure some parameters from UI by providing him some checkboxes, dropdown options and etc. This (let call it 'configuration app') will need to crawl disk, scan some files and do some logic with those files, before 'configuration app' UI is presented to user.&lt;/P&gt;

&lt;P&gt;Now, confusing part to me is how to do it: like module (.conf, .js, .py) or like controller? I'm coming from Rails/Django world so naturally I took controller path and added a couple of templates, but I'm able to run it (I called it 'TestApp.py' and put endpoint as 'testapp').&lt;/P&gt;

&lt;P&gt;Then I created a test module, just to get feeling about it; I named it 'TestWidget' and created TestWidget.conf, TestWidget.js and TestWidget.py (nothing fancy: .js part only appends some text on 'renderResults' and .py part just returns some json content). Now, in sample view I just appended '&amp;lt;module name="TestWidget" layoutPanel="navigationHeader"/&amp;gt;' and Splunk (after restart) is reporting: &lt;EM&gt;Splunk encountered the following unknown module: "TimeWidget"&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;Any idea about this? Also, is it possible Splunk to print all available routes or is there any method to figure out this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 14:39:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45742#M585</guid>
      <dc:creator>dig666</dc:creator>
      <dc:date>2013-02-27T14:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Building module or controller</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45743#M586</link>
      <description>&lt;P&gt;It sounds like you should take a look at how the *nix app was built, it supports such a checkbox-driven configuration.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 18:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45743#M586</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-27T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Building module or controller</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45744#M587</link>
      <description>&lt;P&gt;I highly recommend taking a look at dev.splunk.com. Here are a couple of useful links:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAADS2"&gt;Controller how-to&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAADUA"&gt;Module how-to&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you are creating a controller, you may want to look at the /paths endpoint (&lt;A href="http://127.0.0.1:8000/en-US/paths"&gt;http://127.0.0.1:8000/en-US/paths&lt;/A&gt;) which provides a list of the registered paths (similar to the /modules endpoint [&lt;A href="http://127.0.0.1:8000/en-US/modules%5D"&gt;http://127.0.0.1:8000/en-US/modules]&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2013 06:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45744#M587</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-02-28T06:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Building module or controller</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45745#M588</link>
      <description>&lt;P&gt;Thanks! I'll check it.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2013 15:04:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45745#M588</guid>
      <dc:creator>dig666</dc:creator>
      <dc:date>2013-02-28T15:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Building module or controller</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45746#M589</link>
      <description>&lt;P&gt;Thank you! Also '/paths' url is something I was looking for some time.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2013 15:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Building-module-or-controller/m-p/45746#M589</guid>
      <dc:creator>dig666</dc:creator>
      <dc:date>2013-02-28T15:05:11Z</dc:date>
    </item>
  </channel>
</rss>

