<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to find dashboards not in use by the amount of days? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/418629#M120360</link>
    <description>&lt;P&gt;Hi guys&lt;/P&gt;

&lt;P&gt;I need to find all dashboards not used in x days.&lt;BR /&gt;
I saw this has already been asked in this forum but I can't post links.&lt;BR /&gt;
The post can hopefully be found by its &lt;STRONG&gt;id 662975&lt;/STRONG&gt;.&lt;BR /&gt;
If not here are the suggestions on how to solve it.&lt;/P&gt;

&lt;P&gt;1.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_internal sourcetype=splunkd_ui_access method=post ui/views
   | table user, req_time, file 
   | rename file as dashboard req_time as editTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal user!="-"  sourcetype=splunkd_ui_access "en-US/app"  | rex field=referer "en-US/app/(?&amp;lt;app&amp;gt;[^/]+)/(?&amp;lt;dashboard&amp;gt;[^?/\s]+)" | search  dashboard!="job_management" dashboard!="dbinfo" dashboard!="*en-US" dashboard!="search" dashboard!="home" dashboard!="alerts" dashboard!="dashboards" dashboard!="reports" dashboard!="report" | bucket _time span=1d | stats dc(dashboard) as c by dashboard user _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first query suggestion in that post gives me a table with user name and datetime and dashboard name.&lt;BR /&gt;
The second query seems to present the same.&lt;/P&gt;

&lt;P&gt;I need to query where count = 0.&lt;BR /&gt;
Do you know how to do this?&lt;/P&gt;

&lt;P&gt;Br&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 13:17:15 GMT</pubDate>
    <dc:creator>mrsplunx</dc:creator>
    <dc:date>2019-06-11T13:17:15Z</dc:date>
    <item>
      <title>How to find dashboards not in use by the amount of days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/418629#M120360</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;

&lt;P&gt;I need to find all dashboards not used in x days.&lt;BR /&gt;
I saw this has already been asked in this forum but I can't post links.&lt;BR /&gt;
The post can hopefully be found by its &lt;STRONG&gt;id 662975&lt;/STRONG&gt;.&lt;BR /&gt;
If not here are the suggestions on how to solve it.&lt;/P&gt;

&lt;P&gt;1.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_internal sourcetype=splunkd_ui_access method=post ui/views
   | table user, req_time, file 
   | rename file as dashboard req_time as editTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal user!="-"  sourcetype=splunkd_ui_access "en-US/app"  | rex field=referer "en-US/app/(?&amp;lt;app&amp;gt;[^/]+)/(?&amp;lt;dashboard&amp;gt;[^?/\s]+)" | search  dashboard!="job_management" dashboard!="dbinfo" dashboard!="*en-US" dashboard!="search" dashboard!="home" dashboard!="alerts" dashboard!="dashboards" dashboard!="reports" dashboard!="report" | bucket _time span=1d | stats dc(dashboard) as c by dashboard user _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first query suggestion in that post gives me a table with user name and datetime and dashboard name.&lt;BR /&gt;
The second query seems to present the same.&lt;/P&gt;

&lt;P&gt;I need to query where count = 0.&lt;BR /&gt;
Do you know how to do this?&lt;/P&gt;

&lt;P&gt;Br&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 13:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/418629#M120360</guid>
      <dc:creator>mrsplunx</dc:creator>
      <dc:date>2019-06-11T13:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to find dashboards not in use by the amount of days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/418630#M120361</link>
      <description>&lt;P&gt;@mrsplunx You can use below query  and modify as per your need&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest services/data/ui/views splunk_server=local |rename title as dashboard|join type=outer dashboard[|search index=_internal sourcetype=splunkd_ui_access method=post ui/views
    | table user, req_time, file 
    | rename file as dashboard req_time as editTime]| where ISNULL(user)| table dashboard eai:acl.owner
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 16:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/418630#M120361</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-06-11T16:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find dashboards not in use by the amount of days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/418631#M120362</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Just tried your suggestion.&lt;BR /&gt;
req_time does not work. There is no column editTime&lt;BR /&gt;
This query gives the same output:&lt;BR /&gt;
    |rest services/data/ui/views splunk_server=local |rename title as dashboard |join type=outer dashboard[|search index=_internal sourcetype=splunkd_ui_access method=post ui/views&lt;BR /&gt;
         | table user, file &lt;BR /&gt;
         | rename file as dashboard] | where ISNULL(user)| table dashboard eai:acl.owner&lt;/P&gt;

&lt;P&gt;You have "...as editTime" in your query.&lt;BR /&gt;
Im looking for dashboards not visited in x days.  Sorry if I was unclear.&lt;BR /&gt;
And with your query I get pretty much the same hits when I query for last week and from january 2017 to today, which cannot be true.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/418631#M120362</guid>
      <dc:creator>mrsplunx</dc:creator>
      <dc:date>2020-09-30T00:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to find dashboards not in use by the amount of days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/542851#M153770</link>
      <description>&lt;P&gt;This one worked for me thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 15:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/542851#M153770</guid>
      <dc:creator>Eze</dc:creator>
      <dc:date>2021-03-08T15:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find dashboards not in use by the amount of days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/687963#M234612</link>
      <description>&lt;LI-CODE lang="markup"&gt;|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 ".*\/(?&amp;lt;dashboard&amp;gt;.*)$"
|  table app dashboard updated removable 
|  join type=left dashboard app 
    [search index=_audit ```earliest=&amp;lt;setasperyourneeds&amp;gt; host=&amp;lt;yoursearchhead&amp;gt;``` 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 ".*\:(?&amp;lt;dashboard&amp;gt;.*)$"
|  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&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 19 May 2024 11:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-dashboards-not-in-use-by-the-amount-of-days/m-p/687963#M234612</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2024-05-19T11:28:47Z</dc:date>
    </item>
  </channel>
</rss>

