Peer Pod 로그 조회
    • PDF

    Peer Pod 로그 조회

    • PDF

    Article Summary

    블록체인 네트워크의 Peer Pod 로그를 조회합니다.

    요청

    요청 URL

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

    요청 파라미터

    파라미터명필수 여부타입제약 사항설명
    networkIdYeslongPath Parameter네트워크 아이디
    peerIdYeslongPath ParameterPeer 아이디
    tailLinesNoIntegerQuery Parameter조회할 로그 라인 수, 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}" 
    

    응답

    응답 바디

    항목타입설명
    statusstring응답 성공 여부
    row texttext/plain로그

    응답 예시

    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.