【发布时间】:2018-08-15 20:21:18
【问题描述】:
我正在通过 ElasticSearch 6.3 Java Rest Client 进行批量索引操作。
数据被正确编入索引,但 restclient 正在文件中打印大量日志。见下文:
2018-08-14 16:25:42,614 DEBUG [User=] [tracer] curl -iX POST 'http://1.2.3.4:9202/_bulk?timeout=1m' -d '{"create":{"_index":"ms","_type":"doc","_id":"24218000","version":-4}}
{"create":{"_index":"ms","_type":"doc","_id":"24217999","version":-4}}
{"data":"test","year":2018,"corrid":"24217999","mode":"USPS","emailaddress":"","mimeType":"application/octet-stream","title":"some title","type":"app","maildate":"2018-01-02","code":"abx","direction":"out","quarter":0,"no":"222876"}
{"create":{"_index":"ms","_type":"doc","_id":"24218345","version":-4
如何禁用或限制此功能?
This 文档讲了一点,但没有给出足够的信息。
【问题讨论】:
-
你的应用程序的日志库是什么?我怀疑您将其设置为全局
DEBUG,但您只想将org.elasticsearch.client设置为INFO或WARN。根据您的日志附加程序,您需要正确设置。
标签: elasticsearch apache-commons apache-commons-logging