<?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 find alerts and dashboards that were created a long time ago? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-alerts-and-dashboards-that-were-created-a-long-time/m-p/307910#M92360</link>
    <description>&lt;P&gt;hello there,&lt;BR /&gt;
here is one solution leveraging the | rest endpoints and the "updated" field that they provide:&lt;BR /&gt;
first one is for your views / dashboards.&lt;BR /&gt;
code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/data/ui/views
| search eai:acl.app = *
| table title eai:acl.app eai:acl.owner updated
| eval updated_epoch = strptime('updated', "%Y-%m-%dT%H:%M:%S-%:z")
| eval now = now()
| where updated_epoch &amp;gt; now - 12960000
| sort - updated
| fields - now updated_epoch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the number 12960000 is approximately 5 months (in seconds) you can adjust as you wish&lt;BR /&gt;
if you want to see all the saved items, change the first line in the code to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/saved/searches
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here is a sample screenshot. i created a dashboard couple of minutes ago to demonstrate it catches it. named it "transaction complete"&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3198iFDC1CE6AD738634F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;

&lt;P&gt;p.s. there are probably other ways to achieve what you are looking for. possibly in a  better way too. also, you will probably want to filter the user = nobody items as i assume you are looking for views created by users and not by pre-built apps&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jul 2017 02:28:58 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-07-15T02:28:58Z</dc:date>
    <item>
      <title>How to find alerts and dashboards that were created a long time ago?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-alerts-and-dashboards-that-were-created-a-long-time/m-p/307909#M92359</link>
      <description>&lt;P&gt;Is there any way to find out the alerts and dashboards created like 5 months ago and with the respective user names?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 20:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-alerts-and-dashboards-that-were-created-a-long-time/m-p/307909#M92359</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-07-14T20:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to find alerts and dashboards that were created a long time ago?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-alerts-and-dashboards-that-were-created-a-long-time/m-p/307910#M92360</link>
      <description>&lt;P&gt;hello there,&lt;BR /&gt;
here is one solution leveraging the | rest endpoints and the "updated" field that they provide:&lt;BR /&gt;
first one is for your views / dashboards.&lt;BR /&gt;
code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/data/ui/views
| search eai:acl.app = *
| table title eai:acl.app eai:acl.owner updated
| eval updated_epoch = strptime('updated', "%Y-%m-%dT%H:%M:%S-%:z")
| eval now = now()
| where updated_epoch &amp;gt; now - 12960000
| sort - updated
| fields - now updated_epoch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the number 12960000 is approximately 5 months (in seconds) you can adjust as you wish&lt;BR /&gt;
if you want to see all the saved items, change the first line in the code to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/saved/searches
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here is a sample screenshot. i created a dashboard couple of minutes ago to demonstrate it catches it. named it "transaction complete"&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3198iFDC1CE6AD738634F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;

&lt;P&gt;p.s. there are probably other ways to achieve what you are looking for. possibly in a  better way too. also, you will probably want to filter the user = nobody items as i assume you are looking for views created by users and not by pre-built apps&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 02:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-alerts-and-dashboards-that-were-created-a-long-time/m-p/307910#M92360</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-07-15T02:28:58Z</dc:date>
    </item>
  </channel>
</rss>

