Dashboards & Visualizations

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

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

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

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

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

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

Splunk Employee
Splunk Employee

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

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

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

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

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