Queries the operations logs of a specified task on a specified host of a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeClusterOperationHostTaskLog

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

ClusterId String Yes C-F32FB31D82954C64

The ID of the cluster. You can call ListClusters You can call this operation to view the ID of a cluster.

OperationId String Yes 11123

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

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 region ID of the instance. You can call DescribeRegions To view the latest list of Alibaba Cloud regions.

HostId String No 41008

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

Status String No SUCCESS

The status of the task.

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

Of the task stderr The content of the log entry.

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!

Of the task stdout The content of the log entry.

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

<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>

JSON Syntax

{"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",
"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!"}