You can call this operation to query the orderer node log.

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

  1. http(s)://[Endpoint]/? Action=DescribeFabricOrdererLogs&ConsortiumId=consortium-test-iyuso3g773ki&OrdererName=orderer1&<Common request parameters>

Successful response examples

XML format

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

  1. { 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.

  1. </article>
  2. </main>