MENU
      Peer Pod 로그 조회

        Peer Pod 로그 조회


        기사 요약

        VPC 환경에서 이용 가능합니다.

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

        요청

        요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

        메서드URI
        GET/networks/{networkId}/peers/{peerId}/logs

        요청 헤더

        Blockchain Service API에서 공통으로 사용하는 헤더에 대한 정보는 Blockchain Service 공통 헤더를 참조해 주십시오.

        요청 경로 파라미터

        파라미터에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        networkIdLongRequired네트워크 아이디
        peerIdLongRequiredPeer 아이디

        요청 쿼리 파라미터

        파라미터에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        tailLinesIntegerOptional로그의 라인 수
        • 1,000~99,000
        • 1,000 (기본값)

        요청 예시

        요청 예시는 다음과 같습니다.

        curl --location --request GET 'https://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/peers/{peerId}/logs?tailLines=1000' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
        --header 'Content-Type: application/json'
        Shell

        응답

        응답 형식을 설명합니다.

        응답 바디

        응답 바디에 대한 설명은 다음과 같습니다.

        필드타입필수 여부설명
        logPlain Text-Peer Pod 로그

        응답 상태 코드

        Blockchain Service API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Blockchain Service 공통 응답 상태 코드를 참조해 주십시오.

        응답 예시

        응답 예시는 다음과 같습니다.

        >\033[0;35m peer node start \033[0m
        2024-07-30 06:35:41.354 UTC [nodeCmd] serve -> INFO 001 Starting peer:
         Version: 2.2.3
         Commit SHA: 94ace65
         Go version: go1.15.7
         OS/Arch: linux/amd64
         Chaincode:
          Base Docker Label: org.hyperledger.fabric
          Docker Namespace: hyperledger
        2024-07-30 06:35:41.354 UTC [peer] getLocalAddress -> INFO 002 Auto-detected peer address: 198.18.1.14:443
        2024-07-30 06:35:41.354 UTC [peer] getLocalAddress -> INFO 003 Auto-detect flag is set, returning 198.18.1.14:443
        2024-07-30 06:35:41.374 UTC [nodeCmd] initGrpcSemaphores -> INFO 004 concurrency limit for endorser service is 2500
        2024-07-30 06:35:41.374 UTC [nodeCmd] initGrpcSemaphores -> INFO 005 concurrency limit for deliver service is 2500
        Plain text

        이 문서가 도움이 되었습니까?

        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.