Created on
10-26-2015
12:45 PM
- edited on
02-18-2020
08:35 AM
by
VidyaSargur
When one stands up SolrCloud/HDPSearch, every core/replica will be writing logs to /opt/lucidworks-hdpsearch/solr/server/logs. Files like 'solr-8983-console.log' will grow very quickly for a lightly used index, at the rate of several GBs per day. The reason is it outputs all INFO and DEBUG messages to this console log. Which is great for development, but a pain for production and operations. The challenge is there are quite a few log configuration files spread around the Solr directories, and those will not necessarily yield the desired result. It gets even more complicated for a SolrCloud, where one is dealing with a cluster of nodes.
There is, however, a very straightforward way to quickly address this issue:
The change is applied at runtime, no restart required.
Created on 10-27-2015 03:38 PM
I noticed this change doesn't persist after restart, any pointers here?
Created on 05-15-2017 08:17 PM
Hey Andrew, I'm having the same issue. Did you find any fixes for this? It's great it can be changed without a restart... but having to come back in and set this anytime Solr or the server itself is restarted isn't great. 🙂
EDIT: Help from Hortonworks support pointed out that in log4j.properties (either in Ambari if your Solr Cloud is managed there, or directly on server if not) you can adjust the following line from:
log4j.rootLogger=INFO, file, CONSOLE
Changed to:
log4j.rootLogger=WARN, file, CONSOLE
That will allow it to retain this change on Solr startup.
User | Count |
---|---|
763 | |
379 | |
316 | |
309 | |
270 |