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!

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...