Splunk Search

how to create hyperlink for a plain text that directs to search query on splunk dashboard

REACHGPRAVEEN
Explorer

Hi ,

Please help on this @niketn

the below 2 rows as single panel

search by employeeid(hyperlink)

search by app(hyperlink)

once clicked on above  hyperlinks it should open new search with search query

index = x  | search employeeid =123

index= x | search app = abc

 

Thanks in advance

Labels (1)
0 Karma
1 Solution

renjith_nair
SplunkTrust
SplunkTrust

are you looking for something similar?

<dashboard>
  <label>Hyperlinks</label>
  <row>
    <panel>
      <single>
        <search>
          <query>|makeresults|eval message="search by employeeid"</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">all</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <link target="_blank">search?q=index%20%3D%20x%20%20%7C%20search%20employeeid%20%3D123&amp;earliest=-15m&amp;latest=now</link>
        </drilldown>
      </single>
      <single>
        <search>
          <query>|makeresults|eval message="search by app"</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">all</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <link target="_blank">search?q=index%3D%20x%20%7C%20search%20app%20%3D%20abc&amp;earliest=-15m&amp;latest=now</link>
        </drilldown>
      </single>
    </panel>
  </row>
</dashboard>
Happy Splunking!

View solution in original post

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

are you looking for something similar?

<dashboard>
  <label>Hyperlinks</label>
  <row>
    <panel>
      <single>
        <search>
          <query>|makeresults|eval message="search by employeeid"</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">all</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <link target="_blank">search?q=index%20%3D%20x%20%20%7C%20search%20employeeid%20%3D123&amp;earliest=-15m&amp;latest=now</link>
        </drilldown>
      </single>
      <single>
        <search>
          <query>|makeresults|eval message="search by app"</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">all</option>
        <option name="refresh.display">progressbar</option>
        <drilldown>
          <link target="_blank">search?q=index%3D%20x%20%7C%20search%20app%20%3D%20abc&amp;earliest=-15m&amp;latest=now</link>
        </drilldown>
      </single>
    </panel>
  </row>
</dashboard>
Happy Splunking!
0 Karma

REACHGPRAVEEN
Explorer

Hi renjith_nair,

 

the link opened breaks in sometime . is it with time picker? May i know how to decrease the font of single value displayed please.. Thanks in advance

0 Karma

REACHGPRAVEEN
Explorer

ThankYou so much @renjith_nair  I appreciate your time and response

0 Karma
Get Updates on the Splunk Community!

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

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...