Dashboards & Visualizations

how can i create a query to find out usage of dashboard

Learner
Path Finder

I need a query that will give the count of views of dashboard, number of queries executed by dashboard, time taken by queries, count of executions by user.

Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Learner,

if you search in Community answers, you'll find all the searches you need.

Anyway, did you explored the Dashboard Monitoring App (https://splunkbase.splunk.com/app/3350/) maybe it could solve parte or your needs?

Ciao.

Giuseppe

0 Karma

Learner
Path Finder

Will it be possible to solve this problem without using Dashboard Monitoring App

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Learner,

You don't need to use it, but you can find the searches for your need and use it outside the app.

So e.g. for the dashboard in time you can use a search like this (this one or something similar):

index="_internal"  source=*access.log user!="-" */app/*
| rex field=referer "/en-US/app/(?<app>[^/]+)/(?<dashboard>[^?/\s]+)" 
| search dashboard!="job_management" dashboard!="dbinfo" dashboard!="*en-US" dashboard!="search" dashboard!="home" dashboard!="alerts" dashboard!="alert" dashboard!="dashboards" dashboard!="reports" dashboard!="report" 
| timechart span=1h dc(dashboard)

e.g. to have the top 10 used dashboards, you can use something similar to this:

index="_internal"  source=*access.log user!="-" */app/*
| rex field=referer "/en-US/app/(?<app>[^/]+)/(?<dashboard>[^?/\s]+)" 
| search dashboard!="job_management" dashboard!="dbinfo" dashboard!="*en-US" dashboard!="search" dashboard!="home" dashboard!="alerts" dashboard!="alert" dashboard!="dashboards" dashboard!="reports" dashboard!="report" 
| top 10 dashboard

 this kind of dashboard are very useful to understand how to do a thing for your need not to be used as they are.

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...