You can call this operation to query the orderer node log.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeFabricOrdererLogs | The operation that you want to perform. Set the value to DescribeFabricOrdererLogs. |
ConsortiumId | String | Yes | consortium-test-iyuso3g773ki | The ID of the consortium. |
OrdererName | String | Yes | orderer1 | The name of the orderer node. |
Lines | String | No | 50 | The number of displayed lines. |
RegionId | String | No | cn-hangzhou | The ID of the region. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ErrorCode | Integer | 200 | The error code. |
RequestId | String | 508EA949-6349-4C86-B8E7-1D90669382B1 | The ID of the API request. |
Result | String | \u001b[34m2020-01-03 22:13:53.493 UTC [orderer.consensus.etcdraft] serveRequest -> INFO 073\u001b[0m Start accepting requests as Raft leader at block [318422] channel=channel-01 node=1\n | The result of the operation. |
Success | Boolean | true | The result status. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeFabricOrdererLogs&ConsortiumId=consortium-test-iyuso3g773ki&OrdererName=orderer1&<Common request parameters>
Successful response examples
XML
format
<DescribeFabricOrdererLogsResponse> <RequestId>49FD299C-561E-4668-9E32-D303EE7AAA6C</RequestId> <ErrorCode>200</ErrorCode> <Success>true</Success> <Result>\u001b[34m2020-01-03 22:13:53.493 UTC [orderer.consensus.etcdraft] serveRequest -> INFO 073\u001b[0m Start accepting requests as Raft leader at block [318422] channel=channel-01 node=1\n</Result></DescribeFabricOrdererLogsResponse>
JSON
format
{ “Result”:”\u001b[34m2020-01-03 22:13:53.493 UTC [orderer.consensus.etcdraft] serveRequest -> INFO 073\u001b[0m Start accepting requests as Raft leader at block [318422] channel=channel-01 node=1\n”, “RequestId”:”49FD299C-561E-4668-9E32-D303EE7AAA6C”, “Success”:true, “ErrorCode”:200}
Error codes
For more information about error codes, visit API Error Center.
</article>
</main>