Dashboards & Visualizations

Create panels on the fly in a dashboard

hmahendrakumar
Path Finder

Here is my usecase(translated):

eg:-

I have the list of countries in a file countries.txt

It has the following content

USA

Mexico

Canada

and i have a generic search like this

index=$country sourcetype=tweets earliest=-7d@d | timechart span=1d count

I need to lookup this file and since it has 3 entries my dashboard should have three panels(chart or table or single)

with corresponding searches

index=USA sourcetype=tweets earliest=-7d@d | timechart span=1d count

index=Mexico sourcetype=tweets earliest=-7d@d | timechart span=1d count

index=Canada sourcetype=tweets earliest=-7d@d | timechart span=1d count

Is this possible ? Please let me know if I am not clear enough.

Tags (2)

IT_Bullgod
Splunk Employee
Splunk Employee

Instead of multiple panels, why not have a single panel? You can dynamically list each country as a series on a single chart - which is much cleaner. If there's 2 countries in the result, there's two series on the chart. If there's lots of results, use a limit so you see the top 10 or top 100. Enable drilldown so your user can dive into the specific country as needed.

0 Karma

hmahendrakumar
Path Finder

Yes. That would work if I have few countries with one or two metrics to show. But, in my case I have arnd 20 countries and more than 1 metric to show.I think I oversimplified my use case.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...