We only can fetch the current list of CSs. To know which have been disabled recently, you'll have to keep a list of them (in a lookup, for example) and compare the current list to the saved list. You may be able to examine the configtracker logs to see which searches have been disabled recently. This should get you started by providing a list of newly-disabled saved searches. I'll leave it to you to figure out which are correlation searches and which are normal searches. index=_configtracker "data.changes{}.properties{}.name"="disabled" ("data.changes{}.properties{}.old_value"="*" OR "data.changes{}.properties{}.old_value"="false") ("data.changes{}.properties{}.new_value"="1" OR "data.changes{}.properties{}.new_value"="true") "data.changes{}.stanza"!="feature:*" "data.path"="*savedsearches.conf"
... View more