'elasticsearch log trace'에 해당되는 글 1건

application.proerties에 아래 3줄 추가한다.

 

logging.level.org.springframework.data.elasticsearch.core=DEBUG
logging.level.org.elasticsearch.client=TRACE

logging.level.org.apache.http=TRACE

 

로그기 출력되는거를 확인 할 수 있음

[main] DEBUG o.a.h.i.n.c.MainClientExec - [exchange: 3] start execution 
[main] DEBUG o.a.h.c.p.RequestAddCookies - CookieSpec selected: default 
[main] DEBUG o.a.h.c.p.RequestAuthCache - Re-using cached 'basic' auth scheme for http://192.168.0.50:9200 
[main] DEBUG o.a.h.c.p.RequestAuthCache - No credentials for preemptive authentication 
[main] DEBUG o.a.h.i.n.c.InternalHttpAsyncClient - [exchange: 3] Request connection for {}->http://192.168.0.50:9200 
[main] DEBUG o.a.h.i.n.c.PoolingNHttpClientConnectionManager - Connection request: [route: {}->http://192.168.0.50:9200][total kept alive: 1; route allocated: 1 of 10; total allocated: 1 of 30] 
[main] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][r:r]: Set timeout 0 
[main] DEBUG o.a.h.i.n.c.PoolingNHttpClientConnectionManager - Connection leased: [id: http-outgoing-0][route: {}->http://192.168.0.50:9200][total kept alive: 0; route allocated: 1 of 10; total allocated: 1 of 30] 
[main] DEBUG o.a.h.i.n.c.InternalHttpAsyncClient - [exchange: 3] Connection allocated: CPoolProxy{http-outgoing-0 [ACTIVE]} 
[main] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][r:r]: Set attribute http.nio.exchange-handler 
[main] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][rw:r]: Event set [w] 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.InternalIODispatch - http-outgoing-0 [ACTIVE] Request ready 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.MainClientExec - [exchange: 3] Attempt 1 to execute request 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.MainClientExec - [exchange: 3] Proxy auth state: UNCHALLENGED 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][rw:w]: Set timeout 5000 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 >> GET /idx_es_address/_doc/12345678 HTTP/1.1 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 >> Authorization: Basic ZWxhc3RpYzp0b2Q3cnQyZnJ6ZXFlOA== 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 >> Content-Length: 0 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 >> Host: 192.168.0.50:9200 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 >> Connection: Keep-Alive 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 >> User-Agent: Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][rw:w]: Event set [w] 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.MainClientExec - [exchange: 3] Request completed 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][rw:w]: 225 bytes written 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 >> "GET /idx_es_address/_doc/12345678 HTTP/1.1[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 >> "Authorization: Basic ZWxhc3RpYzp0b2Q3cnQyZnJ6ZXFlOA==[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 >> "Content-Length: 0[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 >> "Host: 192.168.0.50:9200[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 >> "User-Agent: Apache-HttpAsyncClient/4.1.4 (Java/11.0.7)[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 >> "[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.InternalIODispatch - http-outgoing-0 [ACTIVE] Request ready 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][r:w]: Event cleared [w] 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][r:r]: 336 bytes read 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 << "content-type: application/json; charset=UTF-8[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 << "content-length: 249[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 << "[\r][\n]" 
[I/O dispatcher 1] DEBUG o.a.http.wire - http-outgoing-0 << "{"_index":"idx_es_address","_type":"_doc","_id":"12345678","_version":1,"_seq_no":0,"_primary_term":1,"found":true,"_source":{"_class":"com.fourfree.elasticsearch.address.vo.EsAddressVO","cuscode":"12345678","naddr":"[0xffffffec][0xffffff8b][0xffffffa0][0xffffffec][0xffffffa3][0xffffffbc][0xffffffec][0xffffff86][0xffffff8c]","oaddr":"[0xffffffea][0xffffffb5][0xffffffac][0xffffffec][0xffffffa3][0xffffffbc][0xffffffec][0xffffff86][0xffffff8c]"}}" 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 << HTTP/1.1 200 OK 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 << content-type: application/json; charset=UTF-8 
[I/O dispatcher 1] DEBUG o.a.h.headers - http-outgoing-0 << content-length: 249 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.InternalIODispatch - http-outgoing-0 [ACTIVE(249)] Response received 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.MainClientExec - [exchange: 3] Response received HTTP/1.1 200 OK 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.InternalIODispatch - http-outgoing-0 [ACTIVE(249)] Input ready 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.MainClientExec - [exchange: 3] Consume content 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.InternalHttpAsyncClient - [exchange: 3] Connection can be kept alive indefinitely 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.MainClientExec - [exchange: 3] Response processed 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.InternalHttpAsyncClient - [exchange: 3] releasing connection 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][r:r]: Remove attribute http.nio.exchange-handler 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.PoolingNHttpClientConnectionManager - Releasing connection: [id: http-outgoing-0][route: {}->http://192.168.0.50:9200][total kept alive: 0; route allocated: 1 of 10; total allocated: 1 of 30] 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.PoolingNHttpClientConnectionManager - Connection [id: http-outgoing-0][route: {}->http://192.168.0.50:9200] can be kept alive indefinitely 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.ManagedNHttpClientConnectionImpl - http-outgoing-0 192.168.0.45:8081<->192.168.0.50:9200[ACTIVE][r:r]: Set timeout 0 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.PoolingNHttpClientConnectionManager - Connection released: [id: http-outgoing-0][route: {}->http://192.168.0.50:9200][total kept alive: 1; route allocated: 1 of 10; total allocated: 1 of 30] 
[I/O dispatcher 1] DEBUG o.a.h.i.n.c.InternalIODispatch - http-outgoing-0 [ACTIVE] [content length: 249; pos: 249; completed: true] 
[main] DEBUG o.e.c.RestClient - request [GET http://192.168.0.50:9200/idx_es_address/_doc/12345678] returned [HTTP/1.1 200 OK] 
reS:EsAddressVO(cuscode=12345678, naddr=신주소, oaddr=구주소)

반응형
블로그 이미지

visualp

c#, java

,