Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Why am I getting error "Argument "cron_schedule" is not supported by this handler" trying to specify a cron schedule for a saved search?

$
0
0
Hi, I'm creating a saved search as follows. SavedSearch savedSearch = service.getSavedSearches().create(name, query); savedSearch = service.getSavedSearches().get(name); savedSearch.setIsScheduled(true); savedSearch.setCronSchedule("*/5 * * * *"); savedSearch.update(); I get the following error: Exception in thread "main" com.splunk.HttpException: HTTP 400 -- In handler 'savedsearch': Argument "cron_schedule" is not supported by this handler. at com.splunk.HttpException.create(HttpException.java:84) at com.splunk.HttpService.send(HttpService.java:452) at com.splunk.Service.send(Service.java:1293) at com.splunk.HttpService.post(HttpService.java:308) at com.splunk.Entity.update(Entity.java:438) at com.splunk.SavedSearch.update(SavedSearch.java:2200) at com.splunk.Entity.update(Entity.java:450) at com.splunk.SavedSearch.update(SavedSearch.java:2212) Any suggestions? Thanks in advance!

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>