I downloaded this app and am using this... It is simply awesome !!
I was trying the "Link switcher" in this app, and it has one xml and three .js scripts in source code section.
I do not know where to place, or write the .js scripts. I can only see an option for xml code while writing dashboard scripts.
Could you please help?
Put it on
$SPLUNK_HOME/etc/apps/yourappname/appserver/static. Do not forget to restart splunk.
Notice: if the static or the appserver folder is not there, create it.
you go to the splunk app, where your dashboard belongs to. And there you can find, or you have to create the follwing folder:
So over all it looks like:
There you put in your js Files (you can also put css files and other stuff there). Read more about this here: link
My apologies for reopening the topic ...
and I have done the restart of the system but still can not view the source code within the Splunk.
Anyway was wondering if this is possible, and if so what I have to do to be able to display correctly.
Thank you all.
have you edited your simple xml and added the script attribute to your dashboard or form tag?
at the start of your simple xml. Also check if the appserver, static folder and the js file have the corresponding rights. Likewise, the system user needs read and write rights on this files.