Solr 5.X Console Logging - solr-8983-console.log

The solr-port-console.log gets written when using the startup scripts provided with solr 5.x versions. This logging is  just enabled to help you in debugging and track console activities.  So, please note that this console log "solr-8983-console.log" is not rotated out of the box(or by default). In the long run, the file massively grows and might cause running out of disk space.

 It is advised that you remove the CONSOLE appender from the file so that it won't write it out when solr is deployed in servers.

It's documented here  - under "Permanent Logging Settings"


If you're using a file similar to the one that is provided by default with Solr, you'll see a few lines similar to:

log4j.rootLogger=INFO, file, CONSOLE


log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x [%X{collection} %X{shard} %X{replica} %X{core}] \u2013 %m%n

Remove CONSOLE from the first line, and comment out the other three. That will prevent Solr from sending it's Console messages to that file. The file might still appear, and you may get a few entries from other sources, but it shouldn't fill up like you're currently seeing.


Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk