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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...