Security

How to use open in new tab in Splunk nav

vishaltaneja070
Motivator

Need to know if any one has solution of open in new tab option in nav, like we do in html or xml i.e. target="_blank"

Tried with something like this but didn't work:

<a href="admin" target="_blank">Admin</a>
Tags (2)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@vishaltaneja07011993

Have you added your navigation link in SPLUNK_HOME/etc/apps/YOUR_APP/local/data/ui/nav/default.xml ?

0 Karma

vishaltaneja070
Motivator

@kamlesh_vaghela
yes correct, Admin icon is coming but it is not opening in new tab.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@vishaltaneja07011993

This is working on my env. Can you please try it? If it is not working then can you please share Splunk Version details?

<nav search_view="search" color="#5CC05C">
  <view name="search" default="true" />
  <a href="dashboards" target="_blank">Admin</a>
  <collection label="Admin">
<a href="dashboards" target="_blank">Admin</a>  </collection>
</nav>
0 Karma

vishaltaneja070
Motivator

@kamlesh_vaghela

then it is the issue with versioning this feature has been added after 7.1. I have tested it in 7.2 it is working as what I mentioned above.

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@vishaltaneja07011993

Yes, I have also checked in Splunk 7.1. That was a bug and resolved in Splunk 7.2. I didn't found Ticket ID in known issues of 7.1 and fixed issue in 7.2. Once I'll get the ticket ID, I'll share with you. 🙂

0 Karma

sandyIscream
Communicator

@vishaltaneja07011993 Please try the below code.

  <html>
      <div>
        <a href="/app/$env:app$/your_viewname">Admin</a>
      </div>
  </html>
0 Karma

vishaltaneja070
Motivator

@sandyIscream
Not working.

Added this in nav but not working.

0 Karma

sandyIscream
Communicator

The above stanza I pasted will create a new tab from your dashboard once you click on the link. However this below one will create new navigation tab in the SplunkAppbar.

    <collection label="Custom Dashboards">
            <view name="your view name />
    </collection>

This stanza you have to add in your app SPLUNK_HOME/etc/apps/YOUR_APP/local/data/ui/nav/default.xml

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...