|rest /servicesNS/-/-/data/ui/views splunk_server=local ``` Produces all views that are present in local searchhead ```
| table id,updated,eai:acl.removable, eai:acl.app ```eai:acl.removable tells whether the dashboard can be deleted or not. removable=1 means can be deleted. removable=0 means could be system dashboard```
| rename eai:acl.* as *
| rex field=id ".*\/(?<dashboard>.*)$"
| table app dashboard updated removable
| join type=left dashboard app
[search index=_audit ```earliest=<setasperyourneeds> host=<yoursearchhead>``` action=search provenance="UI:Dashboard:*" sourcetype=audittrail savedsearch_name!=""
| stats earliest(_time) as earliest_time latest(_time) as latest_time by app provenance
| convert ctime(*_time)
| rex field=provenance ".*\:(?<dashboard>.*)$"
| table earliest_time latest_time app dashboard ```produces dashboards that are used in timerange given in earliest/global time range```]
| where isnull(earliest_time) AND removable=1 ``` condition to return only dashboards that are not viewed ```
| stats values(dashboard) as dashbaord by app
... View more