Dashboards & Visualizations

external links under search in dashboard

jordans
Path Finder

I have a script that pulls data off of an external site, and I display a search result on a view.

What I'd like to do is to have a link to that external URL in the same panel as the search result. Is this possible, or can I only include static html in new panels?

Tags (2)
0 Karma

sideview
SplunkTrust
SplunkTrust

Certainly. If this is just a static link, ie the link is always the same no matter what the results are, then you can use StaticContentSample:

<module name="StaticContentSample">
  <param name="text"><![CDATA[
    <a href="http://sideviewapps.com">my test link</a>
  ]]></param>
</module>

Or you could use the ServerSideInclude module instead of StaticContentSample. In that case you set a 'src' param instead and you give it the name of a static html file in /etc/apps/<appname>/appserver/static. (dont make it a full HTML file with a <head> and <body> and everything -- just make it a little fragment of well-formed HTML.)

And if it's a dynamic link, meaning part of the URL or maybe one or more of the querystring args a) depends on some values in form elements, or b) depends on some field value(s) from the search result, then you'll want to use Sideview Utils module - HTML because it can do that and more.

0 Karma

jordans
Path Finder

I certainly could add it to the log file that the script appends. What are you thinking?

0 Karma

gekoner
Communicator

Does your script that pulls data off of an external site, index/(pull)the external URL ?

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...