Query Kubernetes Events
Search and aggregate Kubernetes events over HTTP using gcQL queries - surface warnings, group events by reason, and track cluster activity.
Endpoint
POST /api/k8s/v2/events/search
Authentication
This endpoint requires API Key authentication via the Authorization header.
Headers
Authorization
Yes
Bearer token with your API key
Content-Type
Yes
Must be application/json
X-Backend-Id
Only for multi-backend accounts
Your backend identifier, found under Settings → Access → API Keys (details)
Request Body
start
string
Yes
Start of the time range (RFC3339 / ISO 8601)
end
string
Yes
End of the time range (RFC3339 / ISO 8601)
query
string
Yes
The gcQL query to execute
Examples
Recent Warning Events
Fetch the latest Warning-type events:
Example Response:
Events by Reason
Count events grouped by reason to see what dominates cluster activity:
Example Response:
Filtering by Specific Reasons
Match several reasons at once with in():
Best Practices
Start from
type:Warningwhen hunting for problems - normal events usually dominate the volume.Group by
reasonto get a quick picture before drilling into raw events.Discover field names with a
* | field_namesquery if you are unsure what is available to filter on.Always bound results with
| limit N.
Last updated
