All Apps and Add-ons

App setup.xml - 404 page not found

gaurav_maniar
Builder

I'm facing issue with setup page on Splunk app to get user input. When I tried to access the app Set Up page from Manage Apps, I get '404 Page not found error' (web_service.log). Even splunk logs is not giving any details regarding the error. I have followed the guide on the website and some application available on Splunk base. I am not able to find out what I'm doing wrong.

Following are my conf files. All files are in 'default' folder.

Any help will be appreciated.

Splunk Error Log

 INFO [58eaa49e4d11014cc90] error:138 - Masking the original 404 message: 'Nothing matches the given URI' with 'Page not found!' for security reasons

setup.xml

 <setup>
     <block title="User Dashboard Configuration" endpoint="userinput/user_input" entity="dashboard_conf">
         <input field="dashboard_url">
             <label>Dashboard URL</label>
             <type>text</type>
         </input>
         <input field="auth_token">
             <label>Authentication Token</label>
             <type>text</type>
         </input>
     </block>
     <block title="Syslog Configuration" endpoint="userinput/user_input" entity="syslog_conf">
         <input field="slog_port">
             <label>Syslog Port</label>
             <type>text</type>
         </input>
     </block>
 </setup>

restmap.conf

[admin:user_input]
 match=/userinput
 members=user_input

 [admin_external:user_input]
 handlertype = python
 handlerfile = user_input_setup.py
 handleractions = list, edit

user_input.conf

[dashboard_conf]
 dashboard_url = https://
 auth_token = 

 [syslog_conf]
 slog_port = 

lakshman239
Influencer

I assume you have followed through http://dev.splunk.com/view/setup-page/SP-CAAAE8U .
did you try "match=/" instead of "match=/userinput"

Alternatively, you can use an add-on builder to create a custom app/add-on along with a setup page. (creates html file) http://dev.splunk.com/view/addon-builder/SP-CAAAE83 . Have you looked at this?

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...