Dashboards & Visualizations

Add link to another dashboard

Jclowes
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

justinatpnnl
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

justinatpnnl
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>

Jclowes
Engager

That has fixed it, thank you very much.

0 Karma

demkic
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

justinatpnnl
Communicator

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


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

evinasco
Communicator

can i use those examples for sending token values??

0 Karma

justinatpnnl
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>

Michael
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

jetie
Explorer

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

0 Karma

justinatpnnl
Communicator

No problem, glad I could help.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...