Dashboards & Visualizations

Splunk query to get number of panels or searches getting generated in each dashboard

yanivdutt
Explorer

Hi,

I am looking for splunk query which can display dashboard name and no of panels/queries it has got within it

Labels (1)
0 Karma

somesoni2
Revered Legend

Give this a try

| rest splunk_server=local /servicesNS/-/-/data/ui/views | table title eai:acl.app author eai:data | rex field=eai:data max_match=0 "(?<searches>\<search\>)" | rex field=eai:data max_match=0 "(?<panels>\<panel\>)" | fields - eai:data | eval panel_count=mvcount(panels), search_count=mvcount(searches)

yanivdutt
Explorer

It is giving me zero results though we have lot of dashboards

0 Karma

somesoni2
Revered Legend

Try to run just this search and see if this yields any result. What user role are running the search with?

| rest splunk_server=local /servicesNS/-/-/data/ui/views | table title eai:acl.app author eai:data

  

Tags (1)
Get Updates on the Splunk Community!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...