Search logs.
POST {{baseUrl}}/search?limit=100
Submit a query to search logs.
See Using the API for SDK examples.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | number | The maximum number of items to return in a response. | |
page | string | For 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
Key | Datatype | Required | Description |
---|---|---|---|
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. | |||
Content-Type | string | ||
Accept | string |
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":{}}]}