log file location in solr

That depends on how your Solr is installed and configured. If you've used the Solr installation script you will end up with the default configuration and in such case, your Solr logs will be stored in /var/logs/solr.

It is also possible that the log files location was changed. To see where they are located see the /etc/default/solr.in.sh and find the SOLR_LOGS_DIR property there. It will point you to the location of your Solr log files.


There is solr.log file under /var/log/ folder. It records all the solr related logs.

tail-f /var/log/solr.log

As I have upgraded my solr from 4 to 6 on centos 7 Now log file location is different. I have log file at /var/solr/logs/solr.log

to see log use:

 sudo tail -f /var/solr/logs/solr.log

By default, Solr log messages will be written to server/logs/solr.log and to stdout (console).

Check log4j.properties filed under your Solr root/resources and set the solr.log property to the location where you want Solr to write log files.

Solr also provides logging UI via web. Logging UI is available under Logging menu item, e.g.:

http://localhost:8983/solr/#/~logging

. Additional documentation can be found here: Configuring Logging.


if you are using start.jar in example directory, there is a logs directory under example

Tags:

Solr