Search events
search_eventsQuery EyalSec security events newest first, filtered by severity, tags, dates, machine, or run. Paginate automatically and pass event IDs to get stack traces.
Instructions
List events from the EyalSec account, newest first, with the same filters as the dashboard's events page.
Follows the API's paging for you: a selective filter can return short or empty pages that still have
more behind them, so this keeps reading until it has limit events, the history is exhausted, or it has
read 10 pages. If next_cursor in the answer is not empty, call again with it to continue.
Each event carries its id; pass it to get_event for the stack trace, origin and runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | 'newest' (default) or 'severity' (most severe first). | |
| tags | No | Impact classes to keep, such as 'xss' or 'sqli'. | |
| view | No | Which product's events: 'python' (es-python) or 'browser' (es-chromium). Omit for every product on the account. | |
| limit | No | Stop once at least this many events are collected (whole pages of up to 100). | |
| bucket | No | 'live' (default: events not suppressed), 'suppressed', or 'all'. | |
| cursor | No | next_cursor from a previous call with the same filters, to continue. | |
| labels | No | Label ids (from list_labels) to keep. | |
| date_to | No | End date, YYYY-MM-DD or RFC3339; includes that whole day. | |
| machine | No | One machine, by its display name (exact match). | |
| run_uid | No | Only events produced by this run (a run_uid from list_runs or get_event). es-python only. | |
| sources | No | Keep only these taint source categories. | |
| advanced | No | The events page condition builder, passed through as is: {"match": "all"|"any", "conditions": [{"field": "sink", "op": "contains", "value": "sql", "negate": false}]}. | |
| severity | No | Keep only these severities. | |
| xss_only | No | Only es-chromium events whose sink can run script. Needs view='browser'. | |
| date_from | No | Start date, YYYY-MM-DD or RFC3339. | |
| value_chars | No | Cut each event's str_repr to this many characters (0 = no cut). | |
| sink_exclude | No | Case-insensitive regex; drop events whose sink label ('where') matches. | |
| sink_include | No | Case-insensitive regex; keep only events whose sink label ('where') matches. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||