Help Center/ Log Tank Service/ API Reference/ Examples/ Example 4: Querying All Log Streams in a Log Group
Updated on 2024-10-28 GMT+08:00

Example 4: Querying All Log Streams in a Log Group

Scenario

This section describes how to query information about all log streams in a specified log group.

Other Involved APIs

None

Querying Log Streams

  • URI format

GET /v2/{project_id}/groups/{log_group_id}/streams

  • Example Request

GET https://{endpoint}/v2/{project_id}/groups/{log_group_id}/streams

Obtain the value of {endpoint} from Endpoints.

  • Example Response
{
  "log_streams" : [ {
    "creation_time" : number,
    "log_stream_name" : "string",
    "log_stream_id" : "string",
    "filter_count" : number
  } ]
}