Orderer Pod 로그 조회
- 인쇄
- PDF
Orderer Pod 로그 조회
- 인쇄
- PDF
기사 요약
이 요약이 도움이 되었나요?
의견을 보내 주셔서 감사합니다.
VPC 환경에서 이용 가능합니다.
블록체인 네트워크의 Orderer Pod 로그를 조회합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
메서드 | URI |
---|---|
GET | /networks/{networkId}/orderers/{ordererId}/{containerNo}/logs |
요청 헤더
Blockchain Service API에서 공통으로 사용하는 헤더에 대한 정보는 Blockchain Service 공통 헤더를 참조해 주십시오.
요청 경로 파라미터
파라미터에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
networkId | Long | Required | 네트워크 아이디
|
ordererId | String | Required | Orderer 아이디
|
containerNo | Long | Required | Ncloud Kubernetes Service 컨테이너 번호
|
요청 쿼리 파라미터
파라미터에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
tailLines | Integer | Optional | 로그의 라인 수
|
요청 예시
요청 예시는 다음과 같습니다.
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'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
log | Plain 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
[34m2024-07-30 00: 21: 57.996 UTC [orderer.common.server] initializeServerConfig -> INFO 004[0m Starting orderer with TLS enabled
[34m2024-07-30 00: 21: 58.059 UTC [orderer.common.server] Main -> INFO 005[0m Not bootstrapping the system channel because of existing channels
[34m2024-07-30 00: 21: 58.066 UTC [orderer.common.server] selectClusterBootBlock -> INFO 006[0m Cluster boot block is system channel last config block; Blocks Header.Number system-channel=1, bootstrap=0
[34m2024-07-30 00: 21: 58.069 UTC [orderer.common.server] Main -> INFO 007[0m Starting with system channel: ncp-system-channel, consensus type: etcdraft
[34m2024-07-30 00: 21: 58.069 UTC [orderer.common.server] Main -> INFO 008[0m Setting up cluster
[34m2024-07-30 00: 21: 58.069 UTC [orderer.common.server] reuseListener -> INFO 009[0m Cluster listener is not configured, defaulting to use the general listener on port 7050
[34m2024-07-30 00: 21: 58.072 UTC [orderer.common.cluster] loadVerifier -> INFO 00b[0m Loaded verifier for channel ncp-system-channel from config block at index 1
[34m2024-07-30 00: 21: 58.075 UTC [orderer.common.cluster] replicateNeededChannels -> INFO 00c[0m Replication isn't needed
[34m2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00d[0m The enrollment certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
[34m2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00e[0m The server TLS certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
[34m2024-07-30 00: 21: 58.075 UTC [certmonitor] trackCertExpiration -> INFO 00f[0m The client TLS certificate will expire on 2054-07-22 07: 29: 43 +0000 UTC
[34m2024-07-30 00: 21: 58.081 UTC [orderer.consensus.etcdraft] HandleChain -> INFO 010[0m EvictionSuspicion not set, defaulting to 10m0s
[34m2024-07-30 00: 21: 58.084 UTC [orderer.consensus.etcdraft] createOrReadWAL -> INFO 011[0m Found WAL data at path '/var/hyperledger/production/orderer/etcdraft/wal/ncp-system-channel', replaying it channel=ncp-system-channel node=1
[34m2024-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
[34m2024-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[0m 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
[34m2024-07-30 00: 21: 58.089 UTC [orderer.common.server] Main -> INFO 01a[ 0m Beginning to serve requests
[34m2024-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
[34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft ] Step -> INFO 01c[0m 1 is starting a new election at term 2 channel=ncp-system-channel node=1
[34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft ] becomePreCandidate -> INFO 01d[0m 1 became pre-candidate at term 2 channel=ncp-system-channel node=1
[34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft ] poll -> INFO 01e[0m 1 received MsgPreVoteResp from 1 at term 2 channel=ncp-system-channel node=1
[34m2024-07-30 00: 22: 07.589 UTC [orderer.consensus.etcdraft] becomeCandidate -> INFO 01f[0m 1 became candidate at term 3 channel=ncp-system-channel node=1
[34m2024-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
[34m2024-07-30 01: 54: 19.390 UTC [orderer.consensus.etcdraft] createOrReadWAL -> INFO 02b[0m No WAL data found, creating new WAL at path '/var/hyperledger/production/orderer/etcdraft/wal/test-channel' channel=test-channel node=1
[34m2024-07-30 01: 54: 19.399 UTC [orderer.commmon.multichannel] newChain -> INFO 02c[0m Created and starting new channel test-channel
[34m2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] Start -> INFO 02d[0m Starting Raft node channel=test-channel node=1
[34m2024-07-30 01: 54: 19.399 UTC [orderer.common.cluster] Configure -> INFO 02e[0m Entering, channel: test-channel, nodes: []
[34m2024-07-30 01: 54: 19.399 UTC [orderer.common.cluster] Configure -> INFO 02f[0m Exiting
[34m2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] start -> INFO 030[0m Starting raft node as part of a new channel channel=test-channel node=1
[34m2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] becomeFollower -> INFO 031[0m 1 became follower at term 0 channel=test-channel node=1
[34m2024-07-30 01: 54: 19.399 UTC [orderer.consensus.etcdraft] newRaft -> INFO 032[0m newRaft 1 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0] channel=test-channel node=1
이 문서가 도움이 되었습니까?