So, in my organization, I have have created many dashboards, but I want to know if they actually view them and how often and which roles are using/viewing them. Is is possible to get these stats from dashboards? This will be very helpful for me and my team in the future.
Thank you.
If you have access to the _audit index, run this search
index=_audit host="*" sourcetype=audittrail action=search (info=granted OR info=completed OR info=canceled) provenance=UI:dashboard*
| rex field=provenance "UI:[Dd]ashboard:(?<dashboard>.*")
| timecart count by dashboard
Note that if the provenance has D for dashboard, it is a classic Simple XML dashboard studio dashboard whereas if it's a lower case d, it is a dashboard studio dashboard.
If you have access to the _audit index, run this search
index=_audit host="*" sourcetype=audittrail action=search (info=granted OR info=completed OR info=canceled) provenance=UI:dashboard*
| rex field=provenance "UI:[Dd]ashboard:(?<dashboard>.*")
| timecart count by dashboard
Note that if the provenance has D for dashboard, it is a classic Simple XML dashboard studio dashboard whereas if it's a lower case d, it is a dashboard studio dashboard.
You should be able to search for the dashboard name(s) in the _audit index.