Dashboards & Visualizations

How to drilldown bar chart and populate the required data in table format?

Ashwini008
Builder

Hi ,

I wanted to know whether by clicking on the bar graph can we populate the different field values

For example i have bar graph showing the index name ,but when i drilldown on the bars i need to populate the sourcetype name associated with the index shown in the bar graph.

i have bar chart showing indexes . When i click on the  the bar's i want to display the sourcetype of the particural indexes. Now i am able to drilldown but i am not getting the required details i.e. source type.It is showing no results found since when clicked on the bar graph it takes the shown value .

 PFB CODE:

<drilldown>
<set token="indexname">$click.name2$</set>
</drilldown>

 

Query used in the second panel

index=* |search sourcetype="$indexname$"|table index sourcetype

Ashwini008_0-1607954654630.png

Any suggestions?

Labels (5)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try using

<eval token="indexname">expression to convert $click.name2$ to sourcetype name</eval>
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Searching for a sourcetype name the same as the index name is unlikely to produce results.  Try this query.

| metadata index=$indexname$ type=sourcetypes | eval index=$indexname$ | table index sourcetype

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...