Dashboards & Visualizations

Dashboard Drilldown Get Index of Click MV Field

fredclown
Builder

In a simple XML dashboard is there a way to get the index of a clicked mv field in a dashboard drilldown? For instance, if I click on 5 in the count field of row 1 I would like to also get the user bob into a token. If I know the index of the count that I clicked on I could use $row.user$ and then split it by comma and keep the one with the same index as the count that was clicked. Or maybe there is an even better way to do this ... I'm all ears.

hostusertimecount
host1bob
joe
2023-07-05 07:36:51
2023-07-05 07:49:32
5
4
host2steve
john
2023-07-05 09:22:02
2023-07-05 06:14:12
4
4

 

I suppose I could do something like combining values in a field and parsing it on click like the below examples. However, if possible, I would like to have them in separate fields as I think it looks nicer.

hostusertimecount
host1bob
joe
2023-07-05 07:36:51
2023-07-05 07:49:32
5 {bob}
4 {joe}
host2steve
john
2023-07-05 09:22:02
2023-07-05 06:14:12
4 {steve}
4 {john}

OR

hostuser | time | count
host1bob | 2023-07-05 07:36:51 | 5
joe | 2023-07-05 07:49:32 | 4
host2steve | 2023-07-05 09:22:02 | 4
john | 2023-07-05 06:14:12 | 4
Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Drilldowns are by row or cell.  There is no smaller unit, like word or character.  If you have a compelling case for it then make the suggestion at https://ideas.splunk.com

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Drilldowns are by row or cell.  There is no smaller unit, like word or character.  If you have a compelling case for it then make the suggestion at https://ideas.splunk.com

---
If this reply helps you, Karma would be appreciated.

fredclown
Builder

I understand that it is by row or cell. I'm clicking on a mv cell and wondering if there is a way to get the index of the cell item I clicked on. My hunch is no ... I've been searching and not finding anything, but thought I would reach out to the experts to see if there might be a trick I'm unaware of.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Cell is the smallest clickable unit (in a table).  There's no way to determine *where* in the cell it was clicked because Splunk just knows the cell itself was clicked.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...