Create a new search job based on a search query string.
External DocumentationTo learn more, visit the Splunk documentation.

Basic Parameters

ParameterDescription
Earliest TimeSpecify a time string to set the inclusive start of the search.
Latest TimeSpecify a time string to set the inclusive end of the search.
Search QueryThe search query the created job will run.

Advanced Parameters

ParameterDescription
Ad Hoc Search LevelThe search level of the created search. For more information, refer to the Splunk Documentation.
Custom IDOptional string to specify the search ID (<sid>). If unspecified, a random ID is generated.
Execution ModeSet to normal, in order to run an asynchronous search.

Set to blocking, in order to return the sid when the job is complete.

Set to oneshot, in order to return results in the same call.
Search ModeSet to realtime to search live incoming data, or normal to run a one-time search over historical indexed data.

Example Output

{
	"sid": "1684851655.78"
}

Workflow Library Example

Create Search Job with Splunk and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop