<?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 clear orphan scheduled searches that you cannot find, anywhere? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-clear-orphan-scheduled-searches-that-you-cannot-find/m-p/625023#M9264</link>
    <description>&lt;P&gt;I don't know if this is the correct method, but it seems to have worked.&lt;/P&gt;&lt;P&gt;Using "find" command, I found the scheduled search under the /opt/splunk/etc/users/&amp;lt;user-name&amp;gt;/&amp;lt;app-name&amp;gt;&amp;nbsp; in savedsearches.conf.&amp;nbsp; Then&amp;nbsp;I went in to each shc node and disabled it, then did a rolling restart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly, under /opt/splunk/etc/users/&amp;lt;user-name&amp;gt;/&amp;lt;app-name&amp;gt;/metadata &amp;gt;in local.meta there was nothing for the owner, completely missing... but the search name was in there.&amp;nbsp; &amp;nbsp;I have no idea how the shc got this way, but would really like to know, if anyone can explain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 22:37:34 GMT</pubDate>
    <dc:creator>Glasses2</dc:creator>
    <dc:date>2022-12-21T22:37:34Z</dc:date>
    <item>
      <title>How to clear orphan scheduled searches that you cannot find, anywhere?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-clear-orphan-scheduled-searches-that-you-cannot-find/m-p/624476#M9251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an annoying alert that is firing whenever 2 orphaned searches run on their cron schedule.&lt;/P&gt;&lt;P&gt;I have reassigned orphaned searches in that past without issue but these two searches I cannot find in the all configs to reassign.&amp;nbsp; &amp;nbsp; I can find the orphaned searches with the following query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches add_orphan_field=yes count=0
| search orphan=1 disabled=0 is_scheduled=1
| eval status = if(disabled = 0, "enabled", "disabled")
| fields title eai:acl.owner eai:acl.app eai:acl.sharing orphan status is_scheduled cron_schedule next_scheduled_time next_scheduled_time actions
| rename title AS "search name" eai:acl.owner AS owner eai:acl.app AS app eai:acl.sharing AS sharing&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I go to settings &amp;gt; All configurations, set the search to All apps and owners, I cannot find the searches....&lt;/P&gt;&lt;P&gt;When I go to settings &amp;gt; All configs &amp;gt; Reassign KO &amp;gt; Orphaned, select to search all, (although there are loads of orphaned objects)&amp;nbsp; I cannot find these 2 searches causing the alerts.&lt;/P&gt;&lt;P&gt;When I look on the shc cluster nodes in the /opt/splunk/etc/apps/&amp;lt;app_name&amp;gt;, I cannot find them either.....&amp;nbsp; &amp;nbsp;However the MC health check says the orphaned objects are on all 3 of the shc nodes.&lt;/P&gt;&lt;P&gt;I should also mention when I try to reassign other visible objects for these specific owners, it throws an error...&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;Could not find object..."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any advice greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 23:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-clear-orphan-scheduled-searches-that-you-cannot-find/m-p/624476#M9251</guid>
      <dc:creator>Glasses2</dc:creator>
      <dc:date>2022-12-15T23:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear orphan scheduled searches that you cannot find, anywhere?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-clear-orphan-scheduled-searches-that-you-cannot-find/m-p/625023#M9264</link>
      <description>&lt;P&gt;I don't know if this is the correct method, but it seems to have worked.&lt;/P&gt;&lt;P&gt;Using "find" command, I found the scheduled search under the /opt/splunk/etc/users/&amp;lt;user-name&amp;gt;/&amp;lt;app-name&amp;gt;&amp;nbsp; in savedsearches.conf.&amp;nbsp; Then&amp;nbsp;I went in to each shc node and disabled it, then did a rolling restart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly, under /opt/splunk/etc/users/&amp;lt;user-name&amp;gt;/&amp;lt;app-name&amp;gt;/metadata &amp;gt;in local.meta there was nothing for the owner, completely missing... but the search name was in there.&amp;nbsp; &amp;nbsp;I have no idea how the shc got this way, but would really like to know, if anyone can explain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 22:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-clear-orphan-scheduled-searches-that-you-cannot-find/m-p/625023#M9264</guid>
      <dc:creator>Glasses2</dc:creator>
      <dc:date>2022-12-21T22:37:34Z</dc:date>
    </item>
  </channel>
</rss>

