Dashboards & Visualizations

Add link to dashboard after search parameter

bidhanjena13
Engager

Can anyone suggest me how to add link to dashboard on input dropdown option?

I have a dropdown input , and based on a certain static input, i need to redirect to another dashboard

Labels (3)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@bidhanjena13 

Can you please try this?

<input type="dropdown" token="field1">
      <label>field1</label>
      <choice value="reports">reports</choice>
      <choice value="search">search</choice>
      <choice value="dashboards">dashboards</choice>
      <change>
        <condition match="$value$==&quot;reports&quot;">
          <link target="_blank">/app/search/reports</link>
        </condition>
        <condition match="$value$==&quot;search&quot;">
          <link target="_blank">/app/search/search</link>
        </condition>
        <condition match="$value$==&quot;dashboards&quot;">
          <link target="_blank">/app/search/dashboards</link>
        </condition>
      </change>
    </input>

View solution in original post

Tags (1)

kamlesh_vaghela
SplunkTrust
SplunkTrust

@bidhanjena13 

Are you looking for this?

  <input type="dropdown" token="field1">
      <label>field1</label>
      <choice value="reports">reports</choice>
      <choice value="search">search</choice>
      <choice value="dashboards">dashboards</choice>
      <change>
          <link target="_blank">/app/search/$value$</link>
      </change>
    </input>

Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

bidhanjena13
Engager

This is really helpful, but i have another question

can we put below for a specific value like only at select of dashboard as choice  it'll go for the link

<change>
  <link target="_blank">/app/search/$value$</link>
</change>

 

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@bidhanjena13 

Can you please try this?

<input type="dropdown" token="field1">
      <label>field1</label>
      <choice value="reports">reports</choice>
      <choice value="search">search</choice>
      <choice value="dashboards">dashboards</choice>
      <change>
        <condition match="$value$==&quot;reports&quot;">
          <link target="_blank">/app/search/reports</link>
        </condition>
        <condition match="$value$==&quot;search&quot;">
          <link target="_blank">/app/search/search</link>
        </condition>
        <condition match="$value$==&quot;dashboards&quot;">
          <link target="_blank">/app/search/dashboards</link>
        </condition>
      </change>
    </input>
Tags (1)
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...