Skycloak Cluster Logs API
The Cluster Logs API from Skycloak — 2 operation(s) for cluster logs.
The Cluster Logs API from Skycloak — 2 operation(s) for cluster logs.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/skycloak-io:skycloak-io-cluster-logs-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Skycloak Public Cluster Logs API
version: '2026-03-01'
contact:
name: Skycloak Support
url: https://support.skycloak.io
license:
name: Proprietary
description: Programmatic management of Keycloak infrastructure on the Skycloak platform.
servers:
- url: http://localhost:8000
description: Local development
variables: {}
tags:
- name: Cluster Logs
paths:
/clusters/{cluster_id}/logs:
get:
operationId: listClusterLogs
summary: List application logs
description: 'Returns Keycloak application logs for the cluster, sorted by `created_at` (newest first by default).
When neither `start_time` nor `end_time` is provided the query covers the last hour.
The maximum date range is 90 days. Requests outside the log retention window return an empty result set.
Required scope: `clusters:logs:read`'
parameters:
- name: cluster_id
in: path
required: true
schema:
$ref: '#/components/schemas/ClusterId'
- name: limit
in: query
required: false
description: Maximum number of results to return.
schema:
allOf:
- $ref: '#/components/schemas/LogPageLimit'
default: 100
explode: false
- name: offset
in: query
required: false
description: Number of results to skip from the start.
schema:
allOf:
- $ref: '#/components/schemas/PageOffset'
default: 0
explode: false
- name: level
in: query
required: false
schema:
$ref: '#/components/schemas/LogLevel'
explode: false
- name: start_time
in: query
required: false
description: Inclusive start time (ISO 8601). Defaults to one hour ago when omitted.
schema:
type: string
format: date-time
- name: end_time
in: query
required: false
description: Inclusive end time (ISO 8601). Defaults to the current time when omitted.
schema:
type: string
format: date-time
- name: search
in: query
required: false
description: Case-insensitive substring match on `message`.
schema:
type: string
minLength: 1
maxLength: 256
explode: false
- name: category
in: query
required: false
description: Filter by fully-qualified Java package or class name.
schema:
type: string
minLength: 1
maxLength: 255
explode: false
- name: thread_name
in: query
required: false
description: Filter by thread name.
schema:
type: string
minLength: 1
maxLength: 255
explode: false
- name: order
in: query
required: false
description: Sort order by `created_at`. Defaults to `desc` (newest first).
schema:
allOf:
- $ref: '#/components/schemas/SortOrder'
default: desc
explode: false
- $ref: '#/components/parameters/CommonParameters'
responses:
'200':
description: The request has succeeded.
headers:
Total-Count:
required: true
description: Total number of results across all pages, before pagination is applied.
schema:
type: integer
Link:
required: false
description: RFC 8288 Link header containing `next`, `prev`, `first`, and `last` relations.
schema:
type: string
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ClusterLog'
'400':
description: The server could not understand the request due to invalid syntax.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'401':
description: Access is unauthorized.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'402':
description: Client error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/PlanLimitErrorBody'
'404':
description: The server cannot find the requested resource.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'422':
description: Client error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ValidationErrorBody'
'429':
description: Client error
headers:
Retry-After:
required: false
schema:
type: integer
RateLimit-Limit:
required: false
schema:
type: integer
RateLimit-Remaining:
required: false
schema:
type: integer
RateLimit-Reset:
required: false
schema:
type: integer
X-RateLimit-Limit-Second:
required: false
schema:
type: integer
X-RateLimit-Remaining-Second:
required: false
schema:
type: integer
X-RateLimit-Limit-Minute:
required: false
schema:
type: integer
X-RateLimit-Remaining-Minute:
required: false
schema:
type: integer
X-RateLimit-Limit-Hour:
required: false
schema:
type: integer
X-RateLimit-Remaining-Hour:
required: false
schema:
type: integer
X-RateLimit-Limit-Day:
required: false
schema:
type: integer
X-RateLimit-Remaining-Day:
required: false
schema:
type: integer
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'501':
description: Server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
tags:
- Cluster Logs
security:
- ApiKeyAuth: []
x-scopes:
- clusters:logs:read
/clusters/{cluster_id}/security-logs:
get:
operationId: listClusterSecurityLogs
summary: List security logs
description: 'Returns WAF, bot detection, geo-blocking, rate limiting, and IP access control events for the cluster,
sorted by `created_at` (newest first by default).
When neither `start_time` nor `end_time` is provided the query covers the last hour.
The maximum date range is 90 days.
Required scope: `clusters:logs:read`'
parameters:
- name: cluster_id
in: path
required: true
schema:
$ref: '#/components/schemas/ClusterId'
- name: limit
in: query
required: false
description: Maximum number of results to return.
schema:
allOf:
- $ref: '#/components/schemas/LogPageLimit'
default: 100
explode: false
- name: offset
in: query
required: false
description: Number of results to skip from the start.
schema:
allOf:
- $ref: '#/components/schemas/PageOffset'
default: 0
explode: false
- name: start_time
in: query
required: false
description: Inclusive start time (ISO 8601). Defaults to one hour ago when omitted.
schema:
type: string
format: date-time
- name: end_time
in: query
required: false
description: Inclusive end time (ISO 8601). Defaults to the current time when omitted.
schema:
type: string
format: date-time
- name: type
in: query
required: false
description: Filter by event type.
schema:
$ref: '#/components/schemas/SecurityEventType'
explode: false
- name: action
in: query
required: false
description: Filter by action taken on the request.
schema:
$ref: '#/components/schemas/SecurityEventAction'
explode: false
- name: source_ip
in: query
required: false
description: Filter by exact source IP address (IPv4 or IPv6).
schema:
type: string
maxLength: 45
x-oapi-codegen-extra-tags:
validate: ip
x-oapi-codegen-extra-tags:
validate: ip
explode: false
- name: country
in: query
required: false
description: Filter by ISO 3166-1 alpha-2 country code (uppercase).
schema:
type: string
pattern: ^[A-Z]{2}$
minLength: 2
maxLength: 2
x-oapi-codegen-extra-tags:
validate: iso3166_1_alpha2
x-oapi-codegen-extra-tags:
validate: iso3166_1_alpha2
explode: false
- name: search
in: query
required: false
description: Case-insensitive substring match on `message` and `uri`.
schema:
type: string
minLength: 1
maxLength: 256
explode: false
- name: order
in: query
required: false
description: Sort order by `created_at`. Defaults to `desc` (newest first).
schema:
allOf:
- $ref: '#/components/schemas/SortOrder'
default: desc
explode: false
- $ref: '#/components/parameters/CommonParameters'
responses:
'200':
description: The request has succeeded.
headers:
Total-Count:
required: true
description: Total number of results across all pages, before pagination is applied.
schema:
type: integer
Link:
required: false
description: RFC 8288 Link header containing `next`, `prev`, `first`, and `last` relations.
schema:
type: string
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/SecurityLog'
'400':
description: The server could not understand the request due to invalid syntax.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'401':
description: Access is unauthorized.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'402':
description: Client error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/PlanLimitErrorBody'
'404':
description: The server cannot find the requested resource.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'422':
description: Client error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ValidationErrorBody'
'429':
description: Client error
headers:
Retry-After:
required: false
schema:
type: integer
RateLimit-Limit:
required: false
schema:
type: integer
RateLimit-Remaining:
required: false
schema:
type: integer
RateLimit-Reset:
required: false
schema:
type: integer
X-RateLimit-Limit-Second:
required: false
schema:
type: integer
X-RateLimit-Remaining-Second:
required: false
schema:
type: integer
X-RateLimit-Limit-Minute:
required: false
schema:
type: integer
X-RateLimit-Remaining-Minute:
required: false
schema:
type: integer
X-RateLimit-Limit-Hour:
required: false
schema:
type: integer
X-RateLimit-Remaining-Hour:
required: false
schema:
type: integer
X-RateLimit-Limit-Day:
required: false
schema:
type: integer
X-RateLimit-Remaining-Day:
required: false
schema:
type: integer
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'500':
description: Server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
'501':
description: Server error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorBody'
tags:
- Cluster Logs
security:
- ApiKeyAuth: []
x-scopes:
- clusters:logs:read
components:
schemas:
ClusterLog:
type: object
required:
- timestamp
- level
- message
- source
- category
- thread_name
properties:
timestamp:
type: string
format: date-time
level:
$ref: '#/components/schemas/LogLevel'
message:
type: string
source:
type: string
description: Keycloak logger or component that produced this entry.
category:
type: string
description: Fully-qualified Java package or class name.
example: org.keycloak.events
thread_name:
type: string
description: Normalized Keycloak thread name.
example: executor-thread-1
description: A Keycloak application log entry.
SecurityLog:
type: object
required:
- id
- timestamp
- type
- action
- source_ip
- uri
- method
- message
- attack_type
- severity
- anomaly_score
- response_code
- country
- matched_rules
properties:
id:
type: string
timestamp:
type: string
format: date-time
type:
$ref: '#/components/schemas/SecurityEventType'
action:
$ref: '#/components/schemas/SecurityEventAction'
source_ip:
type: string
description: Client IP address.
uri:
type: string
description: Request path and query string.
method:
type: string
description: HTTP method.
example: POST
message:
type: string
attack_type:
type:
- string
- 'null'
description: Primary OWASP attack category. Present for `waf` events only.
severity:
type:
- string
- 'null'
description: OWASP CRS severity level (e.g. `CRITICAL`, `ERROR`, `WARNING`, `NOTICE`). Present for `waf` events only.
anomaly_score:
type:
- integer
- 'null'
description: Cumulative WAF anomaly score. Present for `waf` events only.
response_code:
type:
- integer
- 'null'
description: HTTP response code returned to the client.
country:
type:
- string
- 'null'
description: ISO 3166-1 alpha-2 country code resolved from the client IP.
example: US
matched_rules:
type: array
items:
$ref: '#/components/schemas/MatchedSecurityRule'
description: All OWASP CRS rules matched for this request, aggregated from related WAF events.
description: A security event recorded for this cluster.
ValidationErrorBody:
type: object
required:
- type
- title
- status
- detail
- errors
properties:
type:
type: string
format: uri
title:
type: string
status:
type: integer
detail:
type: string
instance:
type: string
format: uri
errors:
type: array
items:
$ref: '#/components/schemas/FieldError'
minItems: 1
MatchedSecurityRule:
type: object
required:
- rule_id
- attack_type
- message
properties:
rule_id:
type: string
description: OWASP CRS rule identifier.
example: '942100'
attack_type:
type: string
description: OWASP attack category.
example: sqli
message:
type: string
description: An OWASP CRS rule that matched an incoming request.
FieldError:
type: object
required:
- field
- detail
properties:
field:
type: string
detail:
type: string
code:
type: string
value: {}
SortOrder:
type: string
enum:
- asc
- desc
description: Sort direction.
ClusterId:
type: string
format: uuid
LogLevel:
type: string
enum:
- info
- warn
- error
- debug
PageOffset:
type: integer
minimum: 0
SecurityEventAction:
type: string
enum:
- detect
- block
SecurityEventType:
type: string
enum:
- waf
- bot
- geo_block
- rate_limit
- ip_block
- captcha
description: Category of security event.
Versions:
type: string
enum:
- 2026-06-01.beta
ErrorBody:
type: object
required:
- type
- title
- status
- detail
properties:
type:
type: string
format: uri
title:
type: string
status:
type: integer
detail:
type: string
instance:
type: string
format: uri
description: RFC 9457 Problem Details object.
LogPageLimit:
type: integer
minimum: 1
maximum: 1000
PlanLimitErrorBody:
type: object
required:
- type
- title
- status
- detail
- current_plan
- required_plan
properties:
type:
type: string
format: uri
title:
type: string
status:
type: integer
detail:
type: string
instance:
type: string
format: uri
current_plan:
type: string
required_plan:
type: string
code:
type: string
description: 'Machine-readable identifier of the quota that was hit, so a client can tell
quotas apart without parsing `detail`. Known values include `cluster_limit`
(the workspace''s total cluster allowance), `cluster_size_quota` (the
allowance for the requested cluster size) and `cluster_size` (the requested
size is not offered on the plan at all). New values may be added.'
current_usage:
type: integer
description: How many of the resource the workspace currently has.
current_limit:
type: integer
description: Maximum allowed by the current plan. `0` means the plan does not include the resource at all.
description: Returned when a workspace plan quota would be exceeded. `required_plan` indicates the minimum plan needed to complete the request.
parameters:
CommonParameters:
name: API-Version
in: header
required: true
schema:
$ref: '#/components/schemas/Versions'
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: API-Key