View Peer Pod's log
    • PDF

    View Peer Pod's log

    • PDF

    Article Summary

    Query the peer pod log of the blockchain network.

    request

    Request URL

    GET {BLOCKCHAINSERVICE API_URL}/networks/{networkId}/peers/{peerId}/logs
    

    request parameter

    parameter nameRequiredtypeRestrictionsDescription
    networkIdYeslongPath ParameterNetwork ID
    peerIdYeslongPath ParameterPeer ID
    tailLinesNoIntegerQuery ParametersNumber 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

    ItemtypeDescription
    statusstringResponse Success
    row texttext/plainlog

    Example response

    grpc.peer_address=1.1.1.1:53730 grpc.code=OK grpc.call_duration=30.191431ms
    2021-12-06 11:42:31.446 UTC [gossip.election] beLeader -> INFO 02b 9212cf524b06d1a992bf1aba528b19aafb23cedb16b5eae232af017e2a7e3547 : Becoming a leader
    2021-12-06 11:42:31.446 UTC [gossip.service] func1 -> INFO 02c Elected as a leader, starting delivery service for channel channel
    2021-12-06 11:42:31.446 UTC [deliveryClient] StartDeliverForChannel -> INFO 02d This peer will retrieve blocks from ordering service and disseminate to other peers in the organization for channel channel
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.