Prevent Solr Cloud Logs from Filling Up a Node
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:
- Navigate to the admin console, like http://xxx-solr-1:8983/solr
- Click on Logging -> Level
- Select a root logger (click on the level value) and modify it to be WARN
The change is applied at runtime, no restart required.


