Set SOLR log level to ERROR

This is a quick tip if you want to set the log of SOLR to ERROR. It is useful in production environment where you don’t want to collect all data every time and avoid filling hard drives with log files.

First, you need to find the file “log4j.properties” inside the SOLR folder. It will depend on the installation path you used when you installed SOLR, but here is a tip of where it can be found:

log4j.properties

Next, open this file and modify the below lines:

SOLR log to Error

That’s really it since this is one of those quick things that it is not obvious for everybody and hopefully helpful for someone.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.