Search logs.

POST {{baseUrl}}/search?limit=100

Submit a query to search logs.

See Using the API for SDK examples.

Request Params

KeyDatatypeRequiredDescription
limitnumberThe maximum number of items to return in a response.
pagestringFor list pagination. The value of the opc-next-page response header from the previous "Search" call.
For important details about how pagination works, see List Pagination.

Request Body

{"timeStart"=>"2023-03-10T01:02:29.600Z", "timeEnd"=>"2023-03-10T02:02:29.600Z", "searchQuery"=>"search \"{{compartment_ocid}}\" | where level = 'ERROR'", "isReturnFieldInfo"=>true}

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about
a particular request, please provide the request ID.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"summary":{"fieldCount":8499881,"resultCount":3142081},"fields":[{"fieldName":"Excepteur incididunt ipsum","fieldType":"BOOLEAN"},{"fieldName":"id eu tempor deserunt","fieldType":"BOOLEAN"}],"results":[{"data":{}},{"data":{}}]}