eve_search
Search Suricata EVE-format IDS events. Wraps GET /api/eve/list (permission: logs); tag-scoped server-side.
Severity is Suricata-native: 1=high, 2=medium, 3=low/info — a 3-point scale, NOT syslog's 0-7. Takes names or ints: 'high'=1, 'medium'=2, 'low'/'info'/'informational'=3. Single value or an array, which may mix the two forms (e.g. ["high", 2]).
IP filters: passing only src_ip or only dst_ip matches either side (OR); pass both to AND them together. device_id is a convenience — the controller resolves it to the device's IP and matches src_ip OR dst_ip (eve_log has no device_id column).
Window: hours (1-168, default 24) OR start_time+end_time. limit defaults to 50 (max 500). total is the full match count — narrow via severity/IP/signature_id when truncated.
Example: eve_search({severity: "high", hours: 2})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vlan | No | ||
| hours | No | Lookback hours (1-168). Default 24. | |
| iface | No | Capture interface. | |
| limit | No | ||
| proto | No | Protocol name (e.g. 'TCP', 'UDP'). | |
| dst_ip | No | Destination IP. Matches either side when src_ip is absent. | |
| src_ip | No | Source IP. Matches either side when dst_ip is absent. | |
| dst_port | No | ||
| end_time | No | ISO-8601 UTC; must pair with start_time. | |
| severity | No | Severity name(s) or int(s) on Suricata's 3-point scale: 'high'=1, 'medium'=2, 'low'/'info'/'informational'=3. Single value or array; names and ints may be mixed. | |
| src_port | No | ||
| device_id | No | Restrict to a single device id (translated to src_ip/dst_ip server-side). | |
| start_time | No | ISO-8601 UTC; must pair with end_time. | |
| signature_id | No | Suricata signature id(s). Single int or array. |