After looking into the source code there seams nothing in there for error logging together with the request which produced the error. I think there is a need for this to log the request along with the error.
Could be done at o.a.s.core.SolrCore.execute() where the INFO logging is also located. And the response from o.a.s.handler.RequestHandlerBase.handleRequest() is setting rsp.setException(e) which could be used to select logging only requests which produced an ERROR. Are there any opinions about this? Regards Bernd Am 18.02.19 um 14:43 schrieb Bernd Fehling:
Hi list, logging in solr sounds easy but the problem is logging only errors and the request which produced the error. I want to log all 4xx and 5xx http and also solr ERROR. My request_logs from jetty show nothing useful because of POST requests. Only that a request got HTTP 4xx or 5xx from solr. INFO log level for solr_logs is not used because of to much log writing at high QPS. My solr_logs should report ERRORs the request which produced the ERROR. Has anyone an idea or solved this problem? Is it possible to raise the level of a request from INFO to ERROR if the request produced an ERROR in solr_logs? Regards Bernd