You can call this operation to query the operations logs of a specific task on a specified host of the cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description 
ClusterId String Yes C-F32FB31D82954C64

The ID of the cluster.

HostId String Yes 41008

The ID of the host that stores the logs to be queries. You can obtain this value by calling the ListClusterOperationHost operation.

OperationId String Yes 11123

The ID of the historical operation. You can obtain this value by calling the ListClusterOperation operation.

Action String Yes DescribeClusterOperationHostTaskLog

The operation that you want to perform. Set the value to DescribeClusterOperationHostTaskLog.

TaskId String Yes 1098803

The ID of the task to be queried. You can obtain this value by calling the ListClusterOperationHostTask operation.

RegionId String Yes cn-hangzhou

The ID of the region where your cluster resides.

Status String No SUCCESS

The status of the task.

AccessKeyId String No LTAI8ljWyu7y****

The AccessKey ID provided to you by Alibaba Cloud, which specifies the ID of the user.

Response parameters

Parameter Type Example Description 
RequestId String 4CD0BBA0-AC8A-4239-A219-953472BEB4F6

The unique ID of the request.

Stderr String 2018-11-27 14:21:59========================================================================================================== Tue, 27 Nov 2018 14:21:59 IlogtaildComponentOperator.py[line:140] INFO ilogtail has been started, return

The Standard Error (STDERR) log information of the task.

Stdout String 2018-11-27 14:21:59========================================================================================================== touch -c /var/lib/ecm-agent/cache/ecm/service/ILOGTAIL/1.0.0.0.1-df/package/scripts/IlogtaildComponentOperator.py touch -c /var/lib/ecm-agent/cache/ecm/service/ILOGTAIL/1.0.0.0.1-df/package/scripts/IlogtaildConfigService.py root 2844 0.0 0.0 49244 2380 ? Ss 14:20 0:00 /usr/local/ilogtail/ilogtail root 2846 0.5 0.2 231416 18352 ? Sl 14:20 0:00 /usr/local/ilogtail/ilogtail Command completed successfully!

The Standard Out (STDOUT) log information of the task.

Examples

Sample requests


http(s)://[Endpoint]/? Action=DescribeClusterOperationHostTaskLog
&ClusterId=C-F32FB31D82954C64
&HostId=41008
&OperationId=11123
&TaskId=1098803
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DescribeClusterOperationHostTaskLogResponse>
	  <requestId>xxx</requestId>
	  <stderr>2018-11-27 14:21:59========================================================================================================== Tue, 27 Nov 2018 14:21:59 IlogtaildComponentOperator.py[line:140] INFO ilogtail has been started, return</stderr>
	  <stdout>2018-11-27 14:21:59========================================================================================================== touch -c /var/lib/ecm-agent/cache/ecm/service/ILOGTAIL/1.0.0.0.1-df/package/scripts/IlogtaildComponentOperator.py touch -c /var/lib/ecm-agent/cache/ecm/service/ILOGTAIL/1.0.0.0.1-df/package/scripts/IlogtaildConfigService.py root 2844 0.0 0.0 49244 2380 ? Ss 14:20 0:00 /usr/local/ilogtail/ilogtail root 2846 0.5 0.2 231416 18352 ? Sl 14:20 0:00 /usr/local/ilogtail/ilogtail   Command completed successfully! </stdout>
</DescribeClusterOperationHostTaskLogResponse>

JSON format

{
	"stdout":"2018-11-27 14:21:59========================================================================================================== touch -c /var/lib/ecm-agent/cache/ecm/service/ILOGTAIL/1.0.0.0.1-df/package/scripts/IlogtaildComponentOperator.py touch -c /var/lib/ecm-agent/cache/ecm/service/ILOGTAIL/1.0.0.0.1-df/package/scripts/IlogtaildConfigService.py root 2844 0.0 0.0 49244 2380 ? Ss 14:20 0:00 /usr/local/ilogtail/ilogtail root 2846 0.5 0.2 231416 18352 ? Sl 14:20 0:00 /usr/local/ilogtail/ilogtail   Command completed successfully!",
	"requestId":"xxx",
	"stderr":"2018-11-27 14:21:59========================================================================================================== Tue, 27 Nov 2018 14:21:59 IlogtaildComponentOperator.py[line:140] INFO ilogtail has been started, return"
}

Error codes

HTTP status code Error code Error message Description 
403 Params.Illegal The specified parameters are wrongly formed.. The error message returned because the format of the specified parameters is invalid.
403 User.OtherUserResource.NotAllow It is not allowed to operate other user's resource The error message returned because you are not allowed to manage resources of other users.
403 Invalid.Cluster.Status Invalid cluster status %s in status list The error message returned because the status of the specified cluster is invalid.
403 Invalid.Cluster.Type Invalid cluster type %s in cluster type list The error message returned because the type of the specified cluster is invalid.
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Submit a ticket.

For a list of error codes, visit the API Error Center.