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.
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>
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.
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.
<a href="www.google.com"> target="_blank"> Search Google </a>
You have an extra > in there, right? Should be:
<a href="www.google.com" target="_blank"> Search Google </a>
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!
I have never tried that but you can exploit workflow actions
:
http://docs.splunk.com/Documentation/Splunk/6.4.1/Knowledge/CreateworkflowactionsinSplunkWeb
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.