Like the title says.
I have an application that uses a setup view to configure some defaults for the app.
When I install the app, it detects that setup is needed, and prompts to configure the app.
If I press Set up now
I get redirected to the following page
However if i go into the Apps page and select Set up
from the list of options next to the apps name, I get int othe setup view as expected.
Where do I specify the path for the first one to redirect correctly, i.e, how do I fix this?
Thanks for any help.
I solved it by setting the id
field of the local/app.conf
config to the same name as the folder name, as the link constructed by the app setup seems to look at the ID of the app. If that is not the same as the actual folder name, it seems to break.
I solved it by setting the id
field of the local/app.conf
config to the same name as the folder name, as the link constructed by the app setup seems to look at the ID of the app. If that is not the same as the actual folder name, it seems to break.
when you built the app, you should already have default/app.conf with [package] stanza with id right? if its, its always best to have to in default/app.conf instead of local/app.conf
sorry, yes it meant to say default/app.conf... My bad
Note; i made the app so I should have access to whatever is needed
Can I bump this question? There seems to be no way of telling splunk how to redirect properly.
can you share your setup.xml? it should have an entity for taking you to the config page
I can't. What about it should i look for?
its very basic;
<dashboard script="javascript/setup_titan.js hideEdit="true">
<label>label</label>
<description>This app helps ...</description>
<row>
<panel>
<title>Description</title>
<html>
</html>
</panel>
</..>
</..>
You way to check your setup files against the steps in http://dev.splunk.com/view/webframework-developapps/SP-CAAAE8U [ esp the entity]
Also, are you seeing any errors in splunkd_ui_access.log when you encounter the error? [ or you can uninstall the app/restart the splunk instance/ re-install and check for errors/warning/issues in the above log. This could indicate any permissions/path issues]
Did you create the app/add-on using config files or via add-on builder? if its the former, do you want to try using AOB?
@lakshman239 thanks for your quick reply!
I've made the app setup myself, e.g. not using a setup.xml or addon builder. I used the Dev-for-all app available on splunkbase for most of the interactions.
Will check splunkd_ui_access.log for it. Restarting/reinstalling does not help unfortunately.