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

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!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...