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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...