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!
↧