> ## 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.

# Search Events

Search for events based on the specified query.

**Required token**: `Logs Read Access`.

## Basic Parameters

<div className="integrations-table">
  | Parameter  | Description                                                                                                                                             |
  | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | End Time   | The end of the time range to retrieve events from.                                                                                                      |
  | Query      | A search expression to get matching events. For more information, visit the [query language documentation](https://app.scalyr.com/help/query-language). |
  | Start Time | The start of the time range to retrieve events from.                                                                                                    |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter | Description                                              |
  | --------- | -------------------------------------------------------- |
  | Max Count | The maximum number of events to get. Set from 1 to 5000. |
</div>

## Example Output

```json theme={"dark"}
{
	"status": "success",
	"matches": [
		{
			"timestamp": "1393009097459537089",
			"message": "hello, world",
			"severity": 3,
			"session": "sess_d5952fdd-eed2-45f1-8106-b2f2af55dabd",
			"thread": "28",
			"attributes": {
				"tag": "foo"
			}
		}
	],
	"sessions": {
		"sess_d5952fdd-eed2-45f1-8106-b2f2af55dabd": {
			"serverHost": "some.host.name",
			"serverIP": "1.2.3.4",
			"session": "sess_d5952fdd-eed2-45f1-8106-b2f2af55dabd"
		}
	},
	"cpuUsage": 12,
	"continuationToken": "L6_ckjI4BgATVPZkxGaUwQ--"
}
```

## Workflow Library Example

[Search Events with Dataset and Send Results Via Email](https://library.blinkops.com/workflows/search-events-with-dataset-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/search-events-with-dataset-and-send-results-via-email/canvas" />
</div>
