Dashboards & Visualizations

How to drilldown to a dashboard from a dashboard list

rajnish1202
Explorer

Hi All,
I am listing all my dashboard on a homepage as shown below(also refer the attached screenshot).alt text

Dashboard Host
Energy Dashboard - Development Server1
Energy Dashboard - Production Server2
Energy Dashboard - QA Server3

I want a drilldown option on dashboard name so that when a user clicks on homepage name, system should oprn the selected dashboard.
Please note that $click.value$ will not work here because display name of dashboard is different from actual value of dashboard. e.g. Display name is "Energy Dashboard - Development" and value of dashboard is "energy_dashboard__development".

Value field which contains values(energy_dashboard__development) can not be displayed in the list but then I build my dashboard link using the drilldown mechanish system should pick the value from Value column(which is not on display) and dashboard link should be build something like below.

https:my_splunk_instance:8000/app/my_app_name/energy_dashboard__development

instead of

https:my_splunk_instance:8000/app/my_app_name/Energy Dashboard - Development (which gives me nothing)

Any help is really appriciated.

Regards,
Rajnish Kumar

Tags (2)
0 Karma

somesoni2
Revered Legend

Try something like this

<dashboard>
  <label>Dashboard List</label>
  <row>
    <panel>
      <table>
        <search>
          <query>| gentimes start=-1 | eval Dashboard="My First sampple;Second sample;Thirt-Dasboard - name" | table Dashboard | makemv Dashboard delim=";" | mvexpand Dashboard | eval dbname=replace(Dashboard,"[ -]","_")</query>
          <earliest>0</earliest>
          <latest></latest>
        </search>
        <option name="wrap">true</option>
        <option name="rowNumbers">false</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">row</option>
        <drilldown target="_blank">
          <link>/app/search/search?q=$row.dbname$</link>
        </drilldown>
        <option name="count">10</option>
        <fields>Dashboard</fields>
      </table>
    </panel>
  </row>
</dashboard>
0 Karma

rajnish1202
Explorer

Hi somesoni2,
I have created a "dbname" field in my search as per you suggestion. I have verified that this field is getting the value as per my expectation i.e. "energy_dashboard__development" but when I use this field(using $row.dbname$) in the link property on drilldown(in dashboard xml) I get below error.

"Invalid view name requested: "$row.dbname$". View names may only contain alphanumeric characters."

I am creating link as given below.

/app/my_app/$row.dbname$

OR

https://my_instance:8000/en-US/app/my_app/$row.dbname$

Please let me know if you have any idea why I am getting this error when I click on the dashboard name in the table.

Many thanks in advance.

Regards,
Rajnish Kumar

0 Karma
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...