Get KubeOrbit Portal Audit Logs
get_audit_logsFetch KubeOrbit portal-level audit logs to identify who made privileged administrative changes, filtered by cluster if needed.
Instructions
Fetch KubeOrbit's portal-level audit log of privileged administrative or operator actions.
Returns count and items (timestamp, user, action such as ONBOARD_CLUSTER/UPDATE_CLUSTER/DELETE_CLUSTER/ROLLBACK_WORKLOAD, cluster_id, namespace, resource, and details), capped by limit (1-500, default 50). Pass cluster_id to filter to one cluster, or omit cluster_id (null) for portal-wide audit entries.
Use to review who performed privileged changes through the KubeOrbit portal. Prefer get_events or get_extended_events for Kubernetes cluster runtime events, and get_pod_logs for container application logs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_audit_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of portal audit log entries to return, ordered newest-first (1-500, default 50). | |
| cluster_id | No | Optional cluster identifier (from `list_teams_and_clusters`) to filter audit entries to one cluster. Omit or pass null to return portal-wide audit logs across all clusters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of audit log entries returned. | |
| items | No | Portal audit trail entries ordered newest-first with timestamp, user, action, cluster_id, namespace, resource, and details. |