View Peer Pod's log
- Print
- PDF
View Peer Pod's log
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Query the peer pod log of the blockchain network.
request
Request URL
GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/peers/{peerId}/logs
request parameter
parameter name | Required | type | Restrictions | Description |
---|---|---|---|---|
networkId | Yes | long | Path Parameter | Network ID |
peerId | Yes | long | Path Parameter | Peer ID |
tailLines | No | Integer | Query Parameters | Number of log lines to query, default : 1000 (1000 ~ 99000) |
Example request
curl -X GET "http://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/peers/{peerId}/logs?tailLines={tailLines}" \
-H "x-ncp-apigw-timestamp: {x-ncp-apigw-timestamp}" \
-H "x-ncp-iam-access-key: {x-ncp-iam-access-key}" \
-H "x-ncp-apigw-signature-v2: {x-ncp-apigw-signature-v2}"
reply
response body
Item | type | Description |
---|---|---|
status | string | Response Success |
row text | text/plain | log |
Example response
grpc.peer_address=1.1.1.1:53730 grpc.code=OK grpc.call_duration=30.191431ms
[34m2021-12-06 11:42:31.446 UTC [gossip.election] beLeader -> INFO 02b[0m 9212cf524b06d1a992bf1aba528b19aafb23cedb16b5eae232af017e2a7e3547 : Becoming a leader
[34m2021-12-06 11:42:31.446 UTC [gossip.service] func1 -> INFO 02c[0m Elected as a leader, starting delivery service for channel channel
[34m2021-12-06 11:42:31.446 UTC [deliveryClient] StartDeliverForChannel -> INFO 02d[0m This peer will retrieve blocks from ordering service and disseminate to other peers in the organization for channel channel
Was this article helpful?