Deployment Architecture

Using Dynamic Dropdown values in link to dashboard option of dashboard studio

Poojitha
Path Finder

I have a dashboard named dashboard1 created using splunk dashboard studio. It has dropdown as below :

Poojitha_0-1711968252989.png

 

Based on the selection here, it displays line graph. Example : AWSAccount selected, line graph contains different account ids. (xyseries, $Account_Selection$,costing)

Poojitha_0-1711967906892.png

There is another dashboard  (dashboard2) which has details of the AWSAccounts. It has two dropdowns again- awsaccountid, accountname.

My requirement is Example :  when I click on any line in the dashboard1 (where each line is different AWSAccount). It should direct to dashboard2 with this AWSAccount selected in dropdown of dashboard2. Similarly if AWSAccountName  is selected in dropdown and any account is clicked in the panel, it should direct to dashoard2 with the same AWSAccountName in the dashboard2 dropdown. 
If AWSAccount is selected and clicked, accountname in dashboardw will have default value "All" i.e *. viceversa if AWSAccountName selected.

What I have done ?
Under interactions , I selected link to dashboard with dashboard2 and gave
Token name = account_id (this is the token set in dashboard 2)
Value = Name

 

 

 

 

 "eventHandlers": [
                {
                    "type": "drilldown.linkToDashboard",
                    "options": {
                        "app": "Search",
                        "dashboard": "dashboard2",
                        "newTab": true,
                        "tokens": [
                            {
                                "token": "awsaccountid",
                                "value": "name"
                            }
                        ]
                    }
                }
            ]
"eventHandlers": [
                {
                    "type": "drilldown.linkToDashboard",
                    "options": {
                        "app": "search",
                        "dashboard": "dashboard2",
                        "tokens": [
                            {
                                "token": "awsaccountid",
                                "value": "row.AWSAccount.value"
                            }
                        ],
                        "newTab": true
                    }
                }
            ]

 

 

 

 

This is working fine. But if I add AWSAccountName under tokens and pass value to it like above, it is causing AWSAccount value to be displayed in "awsaccountid" and "accountname" of dashboard2.

Please can anyone of you help me how to implement this.

Regards,
PNV

 

 

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...