AnsweredAssumed Answered

Move SOLR logs

Question asked by bcsx on Aug 8, 2013
Hi.

I'm using Alfresco 4.2.d and i need to move SOLR logs. I want to add this to the SOLR log4j.properties file:
    log4j.appender.File.File=LOG_PATH/solr.log

But if I edit the following file, at the startup the changes are deleted:
    /opt/alfresco-4.2.d/tomcat/work/Catalina/localhost/solr/WEB-INF/classes/log4j.properties

I read this from the Alfresco DOCS:
<blockquote>
Setting Solr log4j values
This topic describes the method of setting the Solr log4j values.

To set debug logging levels for Alfresco-Solr components, follow the steps below:

    Copy tomcat/webapps/solr/WEB-INF/classes/log4j.properties to solrRootDir/log4j.properties.
    Edit it to add your required logging setting. For example:

    log4j.logger.org.alfresco.solr.tracker.CoreTracker=DEBUG

    Changes to the log4j.properties file will be re-read by Solr when it starts up. If you need to make changes to the logging level while the system is running, going to the following URL (either in a browser or for example, using curl) will cause Solr to re-load the properties file.

    https://solrHostName:<solrPort>/solr/admin/cores?action=LOG4J&resource=log4j.properties
</blockquote>
But I don't have this folder:
    tomcat/webapps/solr/WEB-INF/classes

And what is the solrRootDir? Where can I put my custom log4j.properties file for SOLR? Or how can I move these logs?

Thanks.

Outcomes