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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...