All Products
Search
Document Center

Simple Log Service:get_end_cursor

Last Updated:Oct 26, 2023

Queries the end cursor of a shard whose ID is specified in a Logstore.

Request syntax

aliyunlog log get_end_cursor --project_name=<value> --logstore_name=<value> --shard_id=<value> [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]

Request parameters

The following table describes the required and specific parameters of the get_begin_cursor command.
ParameterTypeRequiredExampleDescription
--project_nameStringYesaliyun-test-projectThe name of the project.
--logstore_nameStringYeslogstroe-aThe name of the Logstore.
--shard_idStringYes0The ID of the shard.
For information about the global parameters of the Log Service command-line interface (CLI), see Global parameters.

Examples

  • Sample requests
    Use the default account to query the end cursor of a shard whose ID is 0 in a Logstore named logstore-a. Run the following command:
    aliyunlog log get_end_cursor --project_name="aliyun-test-project" --logstore_name="logstore-a" --shard_id=0
  • Sample responses
    {"cursor": "MTYxNDc1MDAyNzM3MzIwNzE1Ng=="}