Dashboards & Visualizations

How to navigate to an external page from a Splunk navigation menu in 6.1.2?

rakesh_498115
Motivator

Hi All,

I am using SPLUNK 6.1.2 and I am using the following in my App navigation page,

<a target="_blank" href="www.google.com"> Search Google </a>

But its not working as expected! Any help?

Thanks,
Rakesh.

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

Rakesh, you are very close. Inside the default.xml file for Navigation, you are correct in using an a href. However, unless you include a protocol ( http or https), Splunk will interpret that as a relative url. So just include the protocol.

 <nav>
  <collection label="Dashboards">
    <view name="mydashboard" />
  </collection>
  <collection label="Search views">
    <view name="mysearchview" />
    <a href="http://www.google.com">Google</a>
  </collection>
</nav>

http://docs.splunk.com/Documentation/Splunk/6.4.1/AdvancedDev/BuildNavigation#Build_the_navigation_X...

rakesh_498115
Motivator

Hi alacercogitatus,

I have given http: protocol but still no luck. its not opening in a new window browser rather its opening in the parent window itself 😞

Thanks,
Rakesh.

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

That is a different question then your original. Now that google opens in the window, you have to allow the target to be _blank, and default.xml doesn't allow some attributes.

See http://answers.splunk.com/answers/11654/appbar-links-open-in-new-windo on how to put a _blank target on the href.

Please accept the answer, as it is correct for your question.

0 Karma

rakesh_498115
Motivator
 <a href="www.google.com"> target="_blank"> Search Google </a>
0 Karma

ChrisG
Splunk Employee
Splunk Employee

You have an extra > in there, right? Should be:

<a href="www.google.com" target="_blank"> Search Google </a>

ChrisG
Splunk Employee
Splunk Employee

You have given so little information here, and a badly formed link, it is hard to know how to begin to answer.

Perhaps if you provided some more context, and pasted in the relevant XML (or whatever you are using for your app), someone might stand a chance of helping.

Hats off to woodcock for giving it a try!

0 Karma

woodcock
Esteemed Legend

I have never tried that but you can exploit workflow actions:

http://docs.splunk.com/Documentation/Splunk/6.4.1/Knowledge/CreateworkflowactionsinSplunkWeb

0 Karma

rakesh_498115
Motivator

Thanks for the update woodcook.. I was intended use something in the navigation URL and not in dashboards for now. Anyway will go through this and get back whether it helps me.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...