Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

log file location in solr

Tags:

solr

I am using solr server (linux) and sometimes it stops automatically. Can somebody please tell me where i can find the log files?

like image 369
manish Avatar asked Oct 05 '10 14:10

manish


People also ask

Where are Solr log files?

Go to /home/solr-anchor/solr/server/logs and view the file solr. log .

How do I log into Solr query?

Choosing Log Level at Startup You can temporarily choose a different logging level as you start Solr. There are two ways: The first way is to set the SOLR_LOG_LEVEL environment variable before you start Solr, or place the same variable in bin/solr.in.sh or bin/solr. in.

How do I debug Solr?

Debugging Solr in IntellijHit the + button and select Remote . Give this configuration a name, and set the port number to the port number passed in the address command above (here it'd be 4044). Now start the debugging session, and viola! You should be able to set breakpoints and work in the Solr/Lucene codebase.

What is Solr used for?

Solr is a search server built on top of Apache Lucene, an open source, Java-based, information retrieval library. It is designed to drive powerful document retrieval applications - wherever you need to serve data to users based on their queries, Solr can work for you.


1 Answers

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.

like image 58
David Lukac Avatar answered Oct 23 '22 02:10

David Lukac