> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Search Job

Create a new search job based on a search query string.

<Note>
  External Documentation

  To learn more, visit the [Splunk documentation](https://docs.splunk.com/Documentation/Splunk/9.1.2/RESTREF/RESTsearch#search.2Fjobs).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter     | Description                                                     |
  | ------------- | --------------------------------------------------------------- |
  | Earliest Time | Specify a time string to set the inclusive start of the search. |
  | Latest Time   | Specify a time string to set the inclusive end of the search.   |
  | Search Query  | The search query the created job will run.                      |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                           |
  | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Ad Hoc Search Level | The search level of the created search. For more information, refer to the [Splunk Documentation](https://docs.splunk.com/Documentation/Splunk/9.0.4/Search/Changethesearchmode).                                     |
  | Custom ID           | Optional string to specify the search ID (`<sid>`). If unspecified, a random ID is generated.                                                                                                                         |
  | Execution Mode      | Set to `normal`, in order to run an asynchronous search.<br /><br />Set to `blocking`, in order to return the sid when the job is complete.<br /><br />Set to `oneshot`, in order to return results in the same call. |
  | Search Mode         | Set to `realtime` to search live incoming data, or `normal` to run a one-time search over historical indexed data.                                                                                                    |
</div>

## Example Output

```json theme={"dark"}
{
	"sid": "1684851655.78"
}
```

## Workflow Library Example

[Create Search Job with Splunk and Send Results Via Email](https://library.blinkops.com/workflows/create-search-job-with-splunk-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-search-job-with-splunk-and-send-results-via-email/canvas" />
</div>
