Hello,
I am an absolute newbie with Splunk and have built a dashboard but I would like to link to other dashboards. I have pasted the module into the xml, however, I do not see the text Link to my other dashboard.
Any help would be greatly appreciated.
Thanks,
Jonathan
<form>
<label>UK test</label>
<module name="StaticContentSample">
<description/>
<fieldset submitButton="false" autoRun="true">
Are you using Splunk 6.x?
I did something similar using an HTML panel. It utilizes the available Splunk css for styling the buttons in addition to some inline styling to make some tweaks:
<row>
<panel>
<html>
<style>.btn-primary { margin: 5px 10px 5px 0; }</style>
<a href="name_of_dashboard" class="btn btn-primary">Link to other dashboard</a>
</html>
</panel>
</row>
Are you using Splunk 6.x?
I did something similar using an HTML panel. It utilizes the available Splunk css for styling the buttons in addition to some inline styling to make some tweaks:
<row>
<panel>
<html>
<style>.btn-primary { margin: 5px 10px 5px 0; }</style>
<a href="name_of_dashboard" class="btn btn-primary">Link to other dashboard</a>
</html>
</panel>
</row>
That has fixed it, thank you very much.
Hello,
Is it possible within the above html snippet to add a command that will open the other dashboard in a new window/tab? I would like to keep the original dashboard open at all times and would love it if I can make it so that the other dashboard opens in a new window.
thank you!
@justinatpnnl
Absolutely! Just add the target to the <a>
tag:
<a target="_blank" href="name_of_dashboard">Link to other dashboard</a>
can i use those examples for sending token values??
Yes, you can include token values in the url. Just make sure to wrap it in "$" symbols. It would look something like this:
<a target="_blank" href="my_dashboard?form.dropdown=$mytoken$">My Dashboard</a>
hmm, I guess my mileage is varied... it complained about the and the class= . . .
I vote, keep it simple, this worked:
<html>
<a href="mailto:me@myschool.edu">Email Splunk Admin about a broken widget</a>
</html>
What fixed it, you saving your dashboard to html and using @justinatpnnl 's css styling idea?
No problem, glad I could help.