Hello:
I am running a indexing process that builds an index from a relation database table containing over 26,000 rows.
After this process runs I see my log file has ballooned to over 100,000 KB big! Here is just a tiny snippet of the messages that are continuously being written to the log file:
2018-06-28 13:26:15 DEBUG wire:54 - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
2018-06-28 13:26:15 DEBUG wire:54 - http-outgoing-0 << "content-type: application/json; charset=UTF-8[\r][\n]"
2018-06-28 13:26:15 DEBUG wire:54 - http-outgoing-0 << "content-length: 44576[\r][\n]"
2018-06-28 13:26:15 DEBUG wire:54 - http-outgoing-0 << "[\r][\n]"
2018-06-28 13:26:15 DEBUG wire:68 - http-outgoing-0 << "{"took":112,"errors":false,"items":[{"index":{"_index":"xxx","_type":"resource","_id":"13141048","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":2153,"_primary_term":1,"status":201}},{"index":{"_index":"xxx","_type":"resource","_id":"14306911","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":2154,"_primary_term":1,"status":201}},{"index":{"_index":"xxx","_type":"resource","_id":"12744619","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":2256,"_primary_term":1,"status":201}},{"index":{"_index":"xxx","_type":"resource","_id":"8884190","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":2141,"_primary_term":1,"status":201}}
and on and on and on....
and:
2018-06-28 13:26:15 DEBUG InternalHttpAsyncClient:292 - [exchange: 44] Connection can be kept alive indefinitely
2018-06-28 13:26:15 DEBUG MainClientExec:385 - [exchange: 44] Response processed
2018-06-28 13:26:15 DEBUG InternalHttpAsyncClient:233 - [exchange: 44] releasing connection
2018-06-28 13:26:15 DEBUG ManagedNHttpClientConnectionImpl:190 - http-outgoing-0 127.0.0.1:51219<->127.0.0.1:9200[ACTIVE][r:r]: Remove attribute http.nio.exchange-handler
2018-06-28 13:26:15 DEBUG PoolingNHttpClientConnectionManager:285 - Releasing connection: [id: http-outgoing-0][route: {}->http://localhost:9200][total kept alive: 0; route allocated: 1 of 10; total allocated: 1 of 30]
2018-06-28 13:26:15 DEBUG PoolingNHttpClientConnectionManager:299 - Connection [id: http-outgoing-0][route: {}->http://localhost:9200] can be kept alive indefinitely
2018-06-28 13:26:15 DEBUG ManagedNHttpClientConnectionImpl:154 - http-outgoing-0 127.0.0.1:51219<->127.0.0.1:9200[ACTIVE][r:r]: Set timeout 0
2018-06-28 13:26:15 DEBUG PoolingNHttpClientConnectionManager:305 - Connection released: [id: http-outgoing-0][route: {}->http://localhost:9200][total kept alive: 1; route allocated: 1 of 10; total allocated: 1 of 30]
2018-06-28 13:26:15 DEBUG RestClient:59 - request [POST http://localhost:9200/_bulk?timeout=1m] returned [HTTP/1.1 200 OK]
2018-06-28 13:26:15 DEBUG tracer:83 - curl -iX POST 'http://localhost:9200/_bulk?timeout=1m' -d '{"index":{"_index":"xxx","_type":"resource","_id":"13141048"}}
I am trying to shut off all of these message so that my log file does not get slammed however I have not been successful at this. Can anybody provide the necessary log4j.properties file entries I can use to stop my log file from being slammed like this?
Thank you for your time.
Gary