Search cluster logs
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/clusters/{clusterKey}/actions/searchLogs
Searches logs within the specified cluster and time range. Supports pagination and filtering.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
-
clusterKey(required): string
Cluster key.
-
workspaceKey(required): string
The key of the Workspace
Query Parameters
-
limit: integer
Minimum Value:
1Maximum Value:1000For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).Default Value:100 -
page: string
Minimum Length:
1For list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine).
Header Parameters
-
if-match: string
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
-
opc-retry-token: string
Minimum Length:
1Maximum Length:64A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of running that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and removed from the system, then a retry of the original creation request might be rejected.
Request body containing the search parameters for cluster logs.
Root Schema : SearchClusterLogsDetails
Type:
objectRequest payload for searching logs in a cluster.
Show Source
-
advancedFilter:
string
Contains any key and value that you want to search in the logs. Should be provided in the format 'key = value'. As of now supported keys are 'taskRunKey' and 'jobRunKey'Example:
taskRunKey = c75b2b5e-b104-48ac-ae82-3acbdc638ab2 -
eventType:
string
Filters logs based on the event type. Supported only when `logContentTypeContains` is `events`.Example:
CREATING -
executionContextId:
string
The execution context identifier associated with the log. Supported only when `logContentTypeContains` is `executor` or `driver`.
-
logContentTypeContains(required):
string
The string represent the type of compute logs Common values include `events`, `driver`, `executor`.Example:
events -
logLevel:
string
The severity level of the log messages to filter. Common values include `INFO`, `WARN`, `ERROR`, `DEBUG`, etc. Supported only when `logContentTypeContains` is `executor` or `driver`.Example:
ERROR -
logStreamTypeContains:
string
Filters logs based on the output stream type. - This includes standard output (`stdout`) for regular program output - and standard error (`stderr`) for error messages and diagnostics. Only supported when logContentTypeContains=executor/driver.Example:
stderr -
messageContains:
string
The string represent a filter to search message string from the log Supported only when `logContentTypeContains` is `events`.
-
opcRequestId:
string
The unique request identifier used for tracking the API call. Supported only when `logContentTypeContains` is `executor` or `driver`.Example:
bce8d78b-6f12-4a99-95d2-3f44440c54a9 -
subjectContains:
string
The string represent the specific of compute nodes Common values include `spark-driver`, `spark-executor-1`.Example:
executor-1 -
thread:
string
The thread identifier that generated the log. Supported only when `logContentTypeContains` is `executor` or `driver`.
-
timeBegin(required):
string(date-time)
Start filter log's date and time, in RFC 3339 format.
-
timeEnd(required):
string(date-time)
End filter log's date and time, in RFC 3339 format.
Response
Supported Media Types
- application/json
200 Response
Successful operation. A collection of logs for the specified parameters is retrieved.
Headers
-
opc-next-page: string
For pagination of a list of items. When paging through a list, if this header appears in the response, then a partial list might have been returned. Include this value as the `page` parameter for the subsequent GET request to get the next batch of items.
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : ClusterLogCollection
Type:
objectResults of a cluster log list.
Show Source
-
items(required):
array items
List of cluster logs.
Nested Schema : items
Type:
arrayList of cluster logs.
Show Source
-
Array of:
object ClusterLogsSummary
Response payload containing search results and metadata.
Nested Schema : ClusterLogsSummary
Type:
objectResponse payload containing search results and metadata.
Show Source
-
fields:
array fields
List of log field schema information.
-
results(required):
array results
List of search results.
-
summary(required):
object SearchResultSummary
Summary of the search response.
Nested Schema : fields
Type:
arrayList of log field schema information.
Show Source
-
Array of:
object FieldInfo
Schema details of log fields.
Nested Schema : results
Type:
arrayList of search results.
Show Source
-
Array of:
object SearchResult
A single search result.
Nested Schema : SearchResultSummary
Type:
objectSummary of the search response.
Show Source
-
fieldCount(required):
integer
Total number of field schema information.
-
resultCount(required):
integer
Total number of search results.
Nested Schema : FieldInfo
Type:
objectSchema details of log fields.
Show Source
-
fieldName(required):
string
Minimum Length:
1Maximum Length:1024The name of the field. -
fieldType(required):
string
Allowed Values:
[ "STRING", "NUMBER", "BOOLEAN", "ARRAY" ]The type of the field.
Nested Schema : SearchResult
Type:
objectA single search result.
Show Source
-
data(required):
object data
The actual log data with field mappings.
Nested Schema : data
Type:
objectThe actual log data with field mappings.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
409 Response
Conflict. Request conflicts with the current state of the resource.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
412 Response
Precondition Failed (One or more conditions in request failed).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.