ピアポッドのログを表示する
    • PDF

    ピアポッドのログを表示する

    • PDF

    Article Summary

    ブロックチェーンネットワークのピアポッドログを照会します。

    リクエスト

    リクエストURL

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

    リクエストパラメータ

    parameter nameRequiredtypeRestrictionsDescription
    networkIdYeslongPath ParameterNetwork ID
    peerIdYeslongPath ParameterPeer ID
    tailLinesNoIntegerQuery ParametersNumber of log lines to query, default : 1000
    (1000 ~ 99000)

    リクエストの例

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

    応答

    応答本文

    | Item | type | Description |
    | ------------------------------------- | ------------- | ------------------------------------------------------------ -------- |
    | status | string | Response Success |
    | row text | text/plain | log |

    応答の例

    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
    

    この記事は役に立ちましたか?

    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.