Dashboards & Visualizations

Add link to another dashboard

Engager

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">
<![CDATA[
Link to my other dashboard
]]>
</module>

<description/>
<fieldset submitButton="false" autoRun="true">

Tags (3)
1 Solution

Communicator

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>

View solution in original post

Communicator

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>

View solution in original post

Engager

That has fixed it, thank you very much.

0 Karma

Explorer

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

0 Karma

Communicator

Absolutely! Just add the target to the <a> tag:


<a target="_blank" href="name_of_dashboard">Link to other dashboard</a>

Communicator

can i use those examples for sending token values??

0 Karma

Communicator

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>

Contributor

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>
0 Karma

Explorer

What fixed it, you saving your dashboard to html and using @justinatpnnl 's css styling idea?

0 Karma

Communicator

No problem, glad I could help.

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!