get_previous_cursor_time
Queries the server time of the previous cursor based on a cursor.
Request syntax
aliyunlog log get_previous_cursor_time --project_name=<value> --logstore_name=<value> --shard_id=<value> --cursor=<value> [--normalize=<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 for this command.
Parameter Name | Numeric type | Required | Example | Description |
--project_name | String | Yes | aliyun-test-project | The name of the project. |
--logstore_name | String | Yes | logstroe-a | The name of the Logstore. |
--shard_id | String | Yes | 0 | The ID of the shard. |
--cursor | String | Yes | MTYxNDc1MDAyNzM3MzIwNTcxNA== | The cursor for which you want to get the timestamp. |
--normalize | Boolean | No | false | Specifies whether to correct the cursor to the nearest available cursor if the specified cursor is out of range.
|
For more information about the global parameters for this command, see Global parameters.
Examples
Sample request
Retrieve the server-side time of the previous cursor.
aliyunlog log get_previous_cursor_time --project_name="aliyun-test-project" --logstore_name="logstore-a" --shard_id=1 --cursor="MTYxNDc1MDAyNzM3MzI1ODg3MQ=="Sample response
{"cursor_time": 1620037252}