Splunk Search

run a splunk query using a hyperlink

kylegoldberg
New Member

Hi,

I am creating a dashboard that will present various aspects of a given session, with the goal being to additionally include a hyperlink that will link to splunk and start running the query embedded in the link.

For example, the query may be -

sourcetype="blah" "data.sessionId"=12345abcde

The sessionId input would change dynamically based on which hyperlink the user clicks in the dashboard. I am having trouble figuring out how to embed the query into the hyperlink so that it will run. By running the query myself in splunk, the issue appears to be that there needs to be an SID in the hyperlink to run a query, but you can't generate that beforehand.

Any advice here would be much appreciated.

Thank you.

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...