Retries failed shipping tasks.

Request syntax

aliyunlog log retry_shipper_tasks --project_name=<value> --logstore_name=<value> --shipper_name=<value> --task_list=<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 retry_shipper_tasks command.
Parameter Type Required Example Description
--project_name String Yes aliyun-test-project The name of the project.
--logstore_name String Yes logstore-a The name of the Logstore.
--shipper_name String Yes sls-doc-testshippername The name of the shipping task.
--task_list String Array Yes ['c1411eb7291c77560ba31fc65bc73c52', 'ed76e3a4faa56f48a150fa1364c9fdfd'] The ID list of the failed shipping tasks. You can use the get_shipper_tasks command to obtain the shipping task ID. For more information, see get_shipper_tasks.
For information about the global parameters of the Log Service command-line interface (CLI), see Global variables.


  • Sample requests
    The IDs of the failed shipping tasks are c1411eb7291c77560ba31fc65bc73c52 and ed76e3a4faa56f48a150fa1364c9fdfd. Run the following command:
    aliyunlog log retry_shipper_tasks --project_name="aliyun-test-project" --logstore_name="logstore-a" --shipper_name="sls-doc-testshippername" --task_list="['c1411eb7291c77560ba31fc65bc73c52', 'ed76e3a4faa56f48a150fa1364c9fdfd']"
  • Sample responses

    After you run the command, no responses are returned.

Error codes

If an error message is returned, fix the error based on the error codes of the related API operation. For more information, see Error codes of RetryShipperTask.

API reference