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!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...