> ## 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 Historical Search

Create an asynchronous search of the historical telemetry collected from the managed endpoints.

Return a search ID to poll with the `Get Historical Search Job Status` action.

<Note>
  External Documentation

  To learn more, visit the [Trellix EDR documentation](https://docs.trellix.com/bundle/mvision-endpoint-detection-and-response-product-guide/page/UUID-a11736e0-7697-2ca8-c1e3-4715126cd90a.html).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter   | Description                                                                                                                                          |
  | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Agent GUID  | The GUID of the agent that uniquely identifies the device to search on.                                                                              |
  | End Time    | The end of the time range to search in.                                                                                                              |
  | Export      | Select to return the results in an exportable file format.                                                                                           |
  | Max Results | The maximum number of rows to include in the results.                                                                                                |
  | Query       | The search query to run. Between `1` and `20000` characters.<br /><br />**For example:** `DeviceName equals "W7x64" and CommandLine contains "exe"`. |
  | Sort        | The column to sort the results by.                                                                                                                   |
  | Start Time  | The start of the time range to search in.                                                                                                            |
  | Type        | The type of the resource in the request body.                                                                                                        |
</div>

## Example Output

```json theme={"dark"}
{
	"data": {
		"type": "queue-jobs",
		"id": "hs-01b5865f-0905-0572-002a-7003d239d812.346565425a0b6b2b7174aa555f67a043",
		"attributes": {
			"status": "in-progress"
		},
		"links": {
			"self": "/edr/v2/searches/queue-jobs/hs-01b5865f-0905-0572-002a-7003d239d812.346565425a0b6b2b7174aa555f67a043"
		}
	}
}
```

## Workflow Library Example

[Create Historical Search with Trellix Edr and Send Results Via Email](https://library.blinkops.com/workflows/create-historical-search-with-trellix-edr-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-historical-search-with-trellix-edr-and-send-results-via-email/canvas" />
</div>
