Cloud Logging API (v1.0.0)
Managing groups, streams and events for Cloud Logging
List events
Authorizations:
query Parameters
group required | string [ 1 .. 512 ] characters The name of the log group. |
stream required | string [ 1 .. 512 ] characters The name of the log stream. |
start | integer >= 0 The start of the time range, expressed as the number of milliseconds after |
end | integer >= 0 The end of the time range, expressed as the number of milliseconds after |
order | string Default: "desc" Enum: "asc" "desc" The order of messages in the response. If the value is |
next | string The token for the next set of items to be return. The token can direct in both directions, forward and backward. You received this token from a previous response (pages.next or pages.prev). |
limit | integer [ 1 .. 10000 ] Default: 10000 The maximum number of log events returned. |
Responses
Response samples
- 200
- 400
- 500
{- "events": [
- {
- "id": "a684a2c7-4d3a-4d78-8bdf-d61ab45ce723",
- "ingestion": 1742918217458,
- "message": "InnoDB initialization has started.",
- "timestamp": 1742918210144
}
], - "pages": {
- "next": "195d488de0bed44de89165ddcbb3c11ad174291821013200",
- "prev": "0a684a2c74d3a4d788bdfd61ab45ce723174291821014400"
}
}
List groups
Authorizations:
query Parameters
pattern | string [ 1 .. 512 ] characters If you specify a string for this parameter, the operation returns only log groups that have names that match the string based on a case-sensitive substring search. For example, if you specify Foo, log groups named FooBar, aws/Foo, and GroupFoo would match, but foo, F/o/o and Froo would not match. |
prefix | string [ 1 .. 512 ] characters The prefix to match. |
next | string non-empty The token for the next set of items to be return. You received this token from a previous response (pages.next). |
limit | integer [ 1 .. 50 ] Default: 50 The maximum number of items returned. |
Responses
Response samples
- 200
- 400
- 500
{- "groups": [
- {
- "created_at": 1393545600000,
- "name": "my-log-group"
}
], - "pages": {
- "next": "bXktZ3JvdXAtbmFtZQ=="
}
}
Delete group
Authorizations:
Request Body schema: application/jsonrequired
Payload
object (group.DeleteGroup) | |||
|
Responses
Request samples
- Payload
{- "group": {
- "name": "my-log-group"
}
}
Response samples
- 400
- 404
- 500
{- "error": {
- "message": "string"
}
}
List streams
Authorizations:
query Parameters
group required | string [ 1 .. 512 ] characters The name of the log group. |
prefix | string [ 1 .. 512 ] characters The prefix to match. |
next | string non-empty The token for the next set of items to be return. You received this token from a previous response (pages.next). |
order | string Default: "asc" Enum: "asc" "desc" The order of log streams in the response. If value is |
limit | integer [ 1 .. 50 ] Default: 50 The maximum number of log streams returned. |
Responses
Response samples
- 200
- 400
- 500
{- "streams": [
- {
- "created_at": 1393545600000,
- "name": "my-log-stream"
}
], - "pages": {
- "next": "bXktc3RyZWFtLW5hbWU="
}
}
Delete stream
Authorizations:
Request Body schema: application/jsonrequired
Payload
object (stream.DeleteStream) | |||||
|
Responses
Request samples
- Payload
{- "stream": {
- "group": {
- "name": "my-log-group"
}, - "name": "my-log-stream"
}
}
Response samples
- 400
- 404
- 500
{- "error": {
- "message": "string"
}
}