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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...