<?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 Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279158#M84308</link>
    <description>&lt;P&gt;Hi Some,&lt;/P&gt;

&lt;P&gt;I can get the output for owner, need to add user field in search query.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2016 07:50:15 GMT</pubDate>
    <dc:creator>taraksinha</dc:creator>
    <dc:date>2016-02-22T07:50:15Z</dc:date>
    <item>
      <title>How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279146#M84296</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;How can I make a rest endpoint search to search for dashboards which are not in use or not even accessed for the last 2 months?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Tarak&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 05:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279146#M84296</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-11T05:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279147#M84297</link>
      <description>&lt;P&gt;The REST endpoint doesn't give usage information. Try something like this:-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*access.log */app/* | rex "\/app\/(?&amp;lt;AppName&amp;gt;\w+)\/(?&amp;lt;ViewName&amp;gt;\w+)\" | search AppName=* AND ViewName=* | stats max(_time) as LastAccessed by AppName, ViewName | eval age=now()-LastAccessed | where age&amp;gt;20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By default _internal logs are only kept for 30 days so, your threshold for usage should be less data retention on the _internal index.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated&lt;/STRONG&gt;&lt;BR /&gt;
Adding LastAccessed (thanks to @renjith.nair)  and owner of the dashboard.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=access.log /app/ | rex "\/app\/(?&amp;lt;AppName&amp;gt;\w+)\/(?&amp;lt;ViewName&amp;gt;\w+)\" | search AppName=* AND ViewName=* | stats max(_time) as LastAccessed by AppName, ViewName | eval age=now()-LastAccessed | where age&amp;gt;20 |eval Date=strftime(LastAccessed,"%d-%m-%Y %H:%M:%S") | join type=left ViewName  [| rest /servicesNS/-/-/data/ui/views | table author title | rename title as ViewName author as owner ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 17:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279147#M84297</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-11T17:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279148#M84298</link>
      <description>&lt;P&gt;Hi Some,&lt;/P&gt;

&lt;P&gt;Can be add date filed also in above query, So i can see date column in output and  correlate dashboard which are not accessed in last 2 Months.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Tarak &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 05:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279148#M84298</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-12T05:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279149#M84299</link>
      <description>&lt;P&gt;Date field is part of your search &lt;CODE&gt;LastAccessed&lt;/CODE&gt; . Just add  &lt;CODE&gt;|eval Date=strftime(LastAccessed,"%d-%m-%Y %H:%M:%S")&lt;/CODE&gt; to your search for formatted output&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 05:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279149#M84299</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2016-02-12T05:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279150#M84300</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I tried to run this query  but not seeing Dashboard name (such as dashboard name "Audio"),&lt;BR /&gt;
I have 250+ Dashboards which names are showing in dashboards as a Title &lt;BR /&gt;
Is it possible to add Dashboard Title and owner of dashboard name in this query?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*access.log */app/* | rex "\/app\/(?\w+)\/(?\w+)\"" | search AppName=* AND ViewName=* | stats max(_time) as LastAccessed by AppName, ViewName | eval age=now()-LastAccessed | where age&amp;gt;20 |eval Date=strftime(LastAccessed,"%d-%m-%Y %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Tarak&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279150#M84300</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-12T11:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279151#M84301</link>
      <description>&lt;P&gt;can anyone help me on my above comment?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 04:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279151#M84301</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-15T04:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279152#M84302</link>
      <description>&lt;P&gt;Getting error while ran above query.&lt;/P&gt;

&lt;P&gt;"Unbalanced quotes."&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 05:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279152#M84302</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-16T05:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279153#M84303</link>
      <description>&lt;P&gt;It's Working....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*access.log */app/* | rex "\/app\/(?\w+)\/(?\w+)\""| search AppName=* AND ViewName=* | stats max(_time) as LastAccessed by AppName, ViewName | eval age=now()-LastAccessed | where age&amp;gt;20 |eval Date=strftime(LastAccessed,"%d-%m-%Y %H:%M:%S") | join type=left ViewName [| rest /servicesNS/-/-/data/ui/views | table author title | rename title as ViewName author as owner ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Feb 2016 09:59:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279153#M84303</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-16T09:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279154#M84304</link>
      <description>&lt;P&gt;Hi Renjith/Soni,&lt;/P&gt;

&lt;P&gt;The above query similar with my next question:-&lt;/P&gt;

&lt;P&gt;I am looking for only search App (search AppName=search) associated with owner. And user who haven't accessed those object (such as reports, search, saved search and dashboard) since 60+ days.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Tarak&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 18:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279154#M84304</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-17T18:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279155#M84305</link>
      <description>&lt;P&gt;I need to add one more column for "user", similar like below query and nobody has beed accessed those object since 60 days. I hope you guys have better idea on this, Kindly reply me &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*access.log */app/* | rex "\/app\/(?\w+)\/(?\w+)\"" | search AppName=search AND ViewName=* | stats max(_time) as LastAccessed by AppName, ViewName | eval age=now()-LastAccessed | where age&amp;gt;20 |eval Date=strftime(LastAccessed,"%d-%m-%Y %H:%M:%S") | join type=left ViewName  [| rest /servicesNS/-/-/data/ui/views | table author title | rename title as ViewName author as owner ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Feb 2016 07:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279155#M84305</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-18T07:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279156#M84306</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;How can i add user field also in below query ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*access.log earliest=-2mon  */app/* | rex "\/app\/(?\w+)\/(?\w+)\"" | search AppName=search AND ViewName=* | stats max(_time) as LastAccessed by AppName, ViewName | eval age=now()-LastAccessed | where age&amp;gt;60 |eval Date=strftime(LastAccessed,"%d-%m-%Y %H:%M:%S") | join type=left ViewName  [| rest /servicesNS/-/-/data/ui/views | table author title | rename title as ViewName author as owner ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Feb 2016 13:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279156#M84306</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-21T13:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279157#M84307</link>
      <description>&lt;P&gt;There is a field user in the first search. &lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 20:10:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279157#M84307</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-21T20:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279158#M84308</link>
      <description>&lt;P&gt;Hi Some,&lt;/P&gt;

&lt;P&gt;I can get the output for owner, need to add user field in search query.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 07:50:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279158#M84308</guid>
      <dc:creator>taraksinha</dc:creator>
      <dc:date>2016-02-22T07:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a rest endpoint search to find dashboards that are not in use or have not been accessed for the last 2 months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279159#M84309</link>
      <description>&lt;P&gt;Yes, explore the data coming from &lt;CODE&gt;index=_interanl source=*access.log&lt;/CODE&gt; . It has a field user. Use that in the query (in stats) so that it's included in the result.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 15:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-rest-endpoint-search-to-find-dashboards-that-are/m-p/279159#M84309</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-22T15:33:08Z</dc:date>
    </item>
  </channel>
</rss>

