MENU
      Orderer Pod 로그 조회

        Orderer Pod 로그 조회


        기사 요약

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

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

        요청

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

        메서드URI
        GET/networks/{networkId}/orderers/{ordererId}/{containerNo}/logs

        요청 헤더

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

        요청 경로 파라미터

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

        필드타입필수 여부설명
        networkIdLongRequired네트워크 아이디
        ordererIdStringRequiredOrderer 아이디
        containerNoLongRequiredNcloud Kubernetes Service 컨테이너 번호
        • Orderer의 구성 타입에 따라 분류
        • 1~5
          • 1: RAFT_1(단일 노드)
          • 1~5: RAFT_5(다중 노드)

        요청 쿼리 파라미터

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

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

        요청 예시

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

        curl --location --request GET 'https://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/orderers/{ordererId}/{containerNo}/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-Orderer Pod 로그

        응답 상태 코드

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

        응답 예시

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

        \033[0;32m Create /var/hyperledger/ledger directory to avoid restarts \033[0m
        >\033[0;35m orderer \033[0m
        [
           33m2024-07-30 00: 21: 57.982 UTC [localconfig
           ] completeInitialization -> WARN 001[
           0m General.GenesisFile should be replaced by General.BootstrapFile
        [
           34m2024-07-30 00: 21: 57.982 UTC [localconfig
           ] completeInitialization -> INFO 002[
           0m Kafka.Version unset, setting to 0.10.2.0
        [
           34m2024-07-30 00: 21: 57.983 UTC [orderer.common.server
           ] prettyPrintStruct -> INFO 003[
           0m Orderer config values:
        	General.ListenAddress = "0.0.0.0"
        	General.ListenPort = 7050
        	General.TLS.Enabled = true
        	General.TLS.PrivateKey = "/var/hyperledger/tls/server/pair/tls.key"
        	General.TLS.Certificate = "/var/hyperledger/tls/server/pair/tls.crt"
        	General.TLS.RootCAs = [/var/hyperledger/tls/server/cert/cacert.pem]
        	General.TLS.ClientAuthRequired = false
        	General.TLS.ClientRootCAs = [/var/hyperledger/tls/client/cert/cacert.pem]
        	General.TLS.TLSHandshakeTimeShift = 0s
        	General.Cluster.ListenAddress = ""
        	General.Cluster.ListenPort = 0
        	General.Cluster.ServerCertificate = ""
        	General.Cluster.ServerPrivateKey = ""
        	General.Cluster.ClientCertificate = "/var/hyperledger/tls/server/pair/tls.crt"
        	General.Cluster.ClientPrivateKey = "/var/hyperledger/tls/server/pair/tls.key"
        	General.Cluster.ReplicationBufferSize = 20971520
        	General.Cluster.ReplicationPullTimeout = 5s
        	General.Keepalive.ServerMinInterval = 1m0s
        	General.Keepalive.ServerInterval = 2h0m0s
        	General.Keepalive.ServerTimeout = 20s
        	General.ConnectionTimeout = 0s
        	General.GenesisMethod = "file"
        	General.GenesisFile = "/hl_config/genesis/genesis.block"
        	General.BootstrapMethod = "file"
        	General.BootstrapFile = "/hl_config/genesis/genesis.block"
        	General.Profile.Enabled = false
        	General.Profile.Address = "0.0.0.0:6060"
        	General.LocalMSPDir = "/var/hyperledger/msp"
        	General.LocalMSPID = "test-msp"
        	General.BCCSP.ProviderName = "SW"
        	General.BCCSP.SwOpts.SecLevel = 256
        	General.BCCSP.SwOpts.HashFamily = "SHA2"
        	General.Authentication.TimeWindow = 15m0s
        	General.Authentication.NoExpirationChecks = false
        	FileLedger.Location = "/var/hyperledger/ledger"
        	FileLedger.Prefix = "hyperledger-fabric-ordererledger"
        	Kafka.Retry.ShortInterval = 5s
        	Kafka.Retry.ShortTotal = 10m0s
        	Kafka.Retry.LongInterval = 5m0s
        	Kafka.Retry.LongTotal = 12h0m0s
        	Kafka.Retry.NetworkTimeouts.DialTimeout = 10s
        	Kafka.Retry.NetworkTimeouts.ReadTimeout = 10s
        	Kafka.Verbose = false
        	Kafka.Version = 0.10.2.0
        	Kafka.TLS.Enabled = false
        	Kafka.TLS.PrivateKey = ""
        	Kafka.SASLPlain.Enabled = false
        	Kafka.Topic.ReplicationFactor = 3
        	Debug.BroadcastTraceDir = ""
        	Debug.DeliverTraceDir = ""
        	Consensus = map[SnapDir:/var/hyperledger/production/orderer/etcdraft/snapshot WALDir:/var/hyperledger/production/orderer/etcdraft/wal]
        	Operations.ListenAddress = "0.0.0.0:8443"
        	Operations.TLS.Enabled = false
        	Operations.TLS.PrivateKey = ""
        	Operations.TLS.Certificate = ""
        	Operations.TLS.RootCAs = []
        
        	Metrics.Provider = "prometheus"
        	Metrics.Statsd.Network = "udp"
        	ChannelParticipation.Enabled = false
        	ChannelParticipation.RemoveStorage = false
        2024-07-30 00: 21: 57.996 UTC [orderer.common.server] initializeServerConfig -> INFO 004 Starting orderer with TLS enabled
        2024-07-30 00: 21: 58.059 UTC [orderer.common.server] Main -> INFO 005 Not bootstrapping the system channel because of existing channels
        2024-07-30 00: 21: 58.066 UTC [orderer.common.server] selectClusterBootBlock -> INFO 006 Cluster boot block is system channel last config block; Blocks Header.Number system-channel=1, bootstrap=0
        2024-07-30 00: 21: 58.069 UTC [orderer.common.server] Main -> INFO 007 Starting with system channel: ncp-system-channel, consensus type: etcdraft
        2024-07-30 00: 21: 58.069 UTC [orderer.common.server] Main -> INFO 008 Setting up cluster
        2024-07-30 00: 21: 58.069 UTC [orderer.common.server] reuseListener -> INFO 009 Cluster listener is not configured, defaulting to use the general listener on port 7050
        2024-07-30 00: 21: 58.072 UTC [orderer.common.cluster] loadVerifier -> INFO 00b Loaded verifier for channel ncp-system-channel from config block at index 1
        2024-07-30 00: 21: 58.075 UTC [orderer.common.cluster] replicateNeededChannels -> INFO 00c Replication isn't needed
        2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00d The enrollment certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
        2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00e The server TLS certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
        2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00f The client TLS certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
        2024-07-30 00: 21: 58.081 UTC [orderer.consensus.etcdraft] HandleChain -> INFO 010 EvictionSuspicion not set, defaulting to 10m0s
        2024-07-30 00: 21: 58.084 UTC [orderer.consensus.etcdraft] createOrReadWAL -> INFO 011 Found WAL data at path '/var/hyperledger/production/orderer/etcdraft/wal/ncp-system-channel', replaying it channel=ncp-system-channel node=1
        2024-07-30 00: 21: 58.088 UTC [orderer.commmon.multichannel] Initialize -> INFO 012[ 0m Starting system channel 'ncp-system-channel' with genesis block hash caedb1ddcb61c0051d85c1ee7987720173f32a8a90aad0471272a8755837ca16 and orderer type etcdraft
        2024-07-30 00: 21: 58.088 UTC [orderer.consensus.etcdraft] Start -> INFO 013[ 0m Starting Raft node channel=ncp-system-channel node=1
        [ 34m2024-07-30 00: 21: 58.088 UTC [orderer.common.cluster ] Configure -> INFO 014 Entering, channel: ncp-system-channel, nodes: []
        [   0m Starting orderer:
         Version: 2.2.3
         Commit SHA: 94ace65
         Go version: go1.15.7
         OS/Arch: linux/amd64
        2024-07-30 00: 21: 58.089 UTC [orderer.common.server] Main -> INFO 01a[   0m Beginning to serve requests
        2024-07-30 00: 21: 58.090 UTC [orderer.consensus.etcdraft] apply -> INFO 01b[ 0m Applied config change to add node 1, current nodes in channel: [1] channel=ncp-system-channel node=1
        2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft   ] Step -> INFO 01c 1 is starting a new election at term 2 channel=ncp-system-channel node=1
        2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft   ] becomePreCandidate -> INFO 01d 1 became pre-candidate at term 2 channel=ncp-system-channel node=1
        2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft   ] poll -> INFO 01e 1 received MsgPreVoteResp from 1 at term 2 channel=ncp-system-channel node=1
        2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft] becomeCandidate -> INFO 01f 1 became candidate at term 3 channel=ncp-system-channel node=1
        2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft] poll -> INFO 020[  0m 1 received MsgVoteResp from 1 at term 3 channel=ncp-system-channel node=1
        2024-07-30 01: 54: 19.390 UTC [orderer.consensus.etcdraft] createOrReadWAL -> INFO 02b No WAL data found, creating new WAL at path '/var/hyperledger/production/orderer/etcdraft/wal/test-channel' channel=test-channel node=1
        2024-07-30 01: 54: 19.399 UTC [orderer.commmon.multichannel] newChain -> INFO 02c Created and starting new channel test-channel
        2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] Start -> INFO 02d Starting Raft node channel=test-channel node=1
        2024-07-30 01: 54: 19.399 UTC [orderer.common.cluster] Configure -> INFO 02e Entering, channel: test-channel, nodes: []
        2024-07-30 01: 54: 19.399 UTC [orderer.common.cluster] Configure -> INFO 02f Exiting
        2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] start -> INFO 030 Starting raft node as part of a new channel channel=test-channel node=1
        2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] becomeFollower -> INFO 031 1 became follower at term 0 channel=test-channel node=1
        2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] newRaft -> INFO 032 newRaft 1 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0] channel=test-channel node=1
        JSON

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

        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.