Splunk Search

help on link target token

jip31
Motivator

hello

I open a new drilldown window from my dashboard like this

 

 <drilldown>
          <link target="_blank">search?q=%60index_toto%60%20sourcetype%3D%22ez%3Acrash%22%20type%3D*%20%7C%20stats%20count%20as%20crash%20by%20host%20_time&amp;earliest=-7d@h&amp;latest=now</link></drilldown>

 

the exact search is

 

`index_toto` sourcetype="ez:crash" type=* | stats count as crash by host _time

 

I would like to add a token on the field host in order to display the results for this host in the new window results

could you help please?

 

Labels (1)
Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Depending what you are trying to do in your search query, try something like this

 <drilldown>
          <link target="_blank">search?q=%60index_toto%60%20sourcetype%3D%22ez%3Acrash%22%20type%3D*%20host%3D%22$click.value$%22%20%7C%20stats%20count%20as%20crash%20by%20host%20_time&amp;earliest=-7d@h&amp;latest=now</link></drilldown>

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Depending what you are trying to do in your search query, try something like this

 <drilldown>
          <link target="_blank">search?q=%60index_toto%60%20sourcetype%3D%22ez%3Acrash%22%20type%3D*%20host%3D%22$click.value$%22%20%7C%20stats%20count%20as%20crash%20by%20host%20_time&amp;earliest=-7d@h&amp;latest=now</link></drilldown>
0 Karma

jip31
Motivator

ok perfect!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

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 ...