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!

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

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