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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...