* **namespace**: (optional) {Splunk_Namespace} The namespace in which * to create the entity. Defaults to the service's * namespace.
* }
* For details, see the * * "POST search/jobs" * endpoint in the REST API Documentation. * @return Splunk_Job * @throws Splunk_IOException */ public function search($search, $args=array()) { return $this->getJobs()->create($search, $args); } /** * Executes the specified search query and returns results immediately. * * @param string $search The search query for the job to perform. * @param array $args (optional) Job-specific creation arguments, * merged with {
* **namespace**: (optional) {Splunk_Namespace} The namespace in which * to create the entity. Defaults to the service's * namespace.
* }
* For details, see the * * "POST search/jobs" * endpoint in the REST API Documentation. * @return string The search results, which can be parsed with * Splunk_ResultsReader. * @throws Splunk_IOException */ public function oneshotSearch($search, $args=array()) { return $this->getJobs()->createOneshot($search, $args); } }