<?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 do you get a list of disabled saved searches and the time since when they were disabled? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437954#M7113</link>
    <description>&lt;P&gt;We are using following query to report a list of disabled saved searches , however we want a time param to be appended in the table . Please advise.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches 
| search  disabled=1 is_scheduled=1 
| fields title eai:acl.owner eai:acl.app eai:acl.sharing 
| rename title AS "search name" eai:acl.owner AS owner eai:acl.app AS app eai:acl.sharing AS sharing
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Dec 2018 09:35:30 GMT</pubDate>
    <dc:creator>JuhiSaxena</dc:creator>
    <dc:date>2018-12-17T09:35:30Z</dc:date>
    <item>
      <title>How do you get a list of disabled saved searches and the time since when they were disabled?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437954#M7113</link>
      <description>&lt;P&gt;We are using following query to report a list of disabled saved searches , however we want a time param to be appended in the table . Please advise.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches 
| search  disabled=1 is_scheduled=1 
| fields title eai:acl.owner eai:acl.app eai:acl.sharing 
| rename title AS "search name" eai:acl.owner AS owner eai:acl.app AS app eai:acl.sharing AS sharing
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Dec 2018 09:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437954#M7113</guid>
      <dc:creator>JuhiSaxena</dc:creator>
      <dc:date>2018-12-17T09:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a list of disabled saved searches and the time since when they were disabled?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437955#M7114</link>
      <description>&lt;P&gt;Since you are looking at searches that used to be scheduled I would suggest looking at last time it was run using the Splunk scheduler logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches 
| search disabled=1 is_scheduled=1 
| fields title eai:acl.owner eai:acl.app eai:acl.sharing 
| join title type=left  [ search index=_internal sourcetype=scheduler | stats max(_time) as last_time by savedsearch_name | convert ctime(last_time) | rename savedsearch_name as title | fields title last_time]
| rename title AS "search name" eai:acl.owner AS owner eai:acl.app AS app eai:acl.sharing AS sharing last_time as "last time"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;BR /&gt;
You won't be able to get last time it was run if it was longest time ago than the _internal index retention time.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 13:07:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437955#M7114</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-12-17T13:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a list of disabled saved searches and the time since when they were disabled?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437956#M7115</link>
      <description>&lt;P&gt;Thank you for your response. However this query is flagging those searches as well which are Enabled [and not in disabled state].&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 14:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437956#M7115</guid>
      <dc:creator>JuhiSaxena</dc:creator>
      <dc:date>2018-12-17T14:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a list of disabled saved searches and the time since when they were disabled?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437957#M7116</link>
      <description>&lt;P&gt;Are you sure about that? &lt;BR /&gt;
If you add &lt;CODE&gt;disabled&lt;/CODE&gt; to the list of fields, you should see that all the searches in the table have &lt;CODE&gt;disabled&lt;/CODE&gt; set to 1.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 14:44:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437957#M7116</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-12-17T14:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a list of disabled saved searches and the time since when they were disabled?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437958#M7117</link>
      <description>&lt;P&gt;ok , i can now see it working. Ill get back to you after playing around with the query. Thanks a lot again.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 15:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437958#M7117</guid>
      <dc:creator>JuhiSaxena</dc:creator>
      <dc:date>2018-12-17T15:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a list of disabled saved searches and the time since when they were disabled?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437959#M7118</link>
      <description>&lt;P&gt;Great, you welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 15:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437959#M7118</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2018-12-17T15:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get a list of disabled saved searches and the time since when they were disabled?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437960#M7119</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
the time being picked is the scheduled time ie, when was the alert last scheduled to run. Is there any way to pick up the actual time when alert was disabled.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 14:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-get-a-list-of-disabled-saved-searches-and-the-time/m-p/437960#M7119</guid>
      <dc:creator>JuhiSaxena</dc:creator>
      <dc:date>2018-12-26T14:23:04Z</dc:date>
    </item>
  </channel>
</rss>

