<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Solr log files (change location) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264802#M217932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just checking, are you filenames alfresco.log4j.properties with a '.' (period) or alfresco-log4j.properties with a '-' (dash)? The - worked for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm not sure if it's relevant but might be worth checking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't do anything to the original log4j.properties files and before I fixed this the log files would appear in the root drive or &amp;lt;tomcat&amp;gt;/logs/ depending on how alfresco was started. Using the full path in the custom-log4j.properties files has solved that issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the contents of my solr-log4j.properties file if it helps and in this case the alfresco directory is in the root of the disk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set root logger level to error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.rootLogger=WARN, Console, File&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;###### Console appender definition #######&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# All outputs currently set to be a ConsoleAppender.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.Console=org.apache.log4j.ConsoleAppender&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.Console.layout=org.apache.log4j.PatternLayout&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;###### File appender definition #######&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File=org.apache.log4j.DailyRollingFileAppender&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.File=/Alfresco/tomcat/logs/solr.log&amp;nbsp;&amp;nbsp; ##### this is the only line i changed ####&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.Append=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.DatePattern='.'yyyy-MM-dd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.layout=org.apache.log4j.PatternLayout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For &amp;lt;strong&amp;gt;alfresco, share, etc&amp;lt;/strong&amp;gt; if I modified the log4j.properties in their path the log file path changed I just put the custom log4j.properties files all in extensions to make future updates easier, it was only &amp;lt;strong&amp;gt;solr&amp;lt;/strong&amp;gt; that was causing me trouble originally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know how you get on and I'll see what else I can find if it doesn't work for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2013 01:16:00 GMT</pubDate>
    <dc:creator>ed008</dc:creator>
    <dc:date>2013-11-06T01:16:00Z</dc:date>
    <item>
      <title>Solr log files (change location)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264796#M217926</link>
      <description>Hi,I have installed Alfresco Community 4.2 (/opt/alfresco).Into this folder, I cand find some solr log files :solr.logsolr.log.2012-12-29solr.log.2012-12-30solr.log.2012-12-31solr.log.2013-01-01solr.log.2013-01-02solr.log.2013-01-03solr.log.2013-01-04solr.log.2013-01-05solr.log.2013-01-06‍‍‍‍‍‍‍‍‍‍I</description>
      <pubDate>Tue, 08 Jan 2013 13:02:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264796#M217926</guid>
      <dc:creator>jlocke</dc:creator>
      <dc:date>2013-01-08T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Solr log files (change location)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264797#M217927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The over-ride for SOLR is currently fixed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add log4j-solr.properties &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in &amp;lt;tomcat&amp;gt;/shared/classes &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or somewhere else at the root of the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 13:47:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264797#M217927</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2013-01-08T13:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Solr log files (change location)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264798#M217928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On my test platform with Alfresco 4.2.c CE, testing with a split solr and alfresco instance server setup (i.e. solr on a separate server from the alfresco instance), I've tried the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) adding a log4j-solr.properties file in /opt/alfresco/tomcat/shared/classes on the alresco instance server; the file is owned by root&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) adding a log4j-sor.properties file /var/lib/tomcat7/shared/classes on the solr server; the file is owned by tomcat7&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the file just contains:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.File=/tmp/solr.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where tomcat7 can definitely write to /tmp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But after restarting alfresco 4.2.c on the alfresco server, and tomcat7 on the solr server, I get the error "java.io.FileNotFoundException: solr.log (Permission denied)" in the catalina.out file on the solr server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I even tried to change the original log4j.properties file found in the alfresco server's /opt/alfresco/tomcat/work/Catalina/localhost/solr/WEB-INF/classes/ folder, but no joy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*scratches head* what am I doing wrong here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 11:20:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264798#M217928</guid>
      <dc:creator>xarope</dc:creator>
      <dc:date>2013-02-14T11:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Solr log files (change location)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264799#M217929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently investigating this issue. Did you find a solution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 21:48:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264799#M217929</guid>
      <dc:creator>mstein</dc:creator>
      <dc:date>2013-10-22T21:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Solr log files (change location)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264800#M217930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It took me a while to work this one out as the documentation isn't clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for reference, my setup is OS X 10.9 with 4.2e&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get all the log files in the right place copy the &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.properties&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; files from the paths for AWE, Alfresco, Share and Solr.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Solr file is under &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/tomcat/work/Catalina/localhost/solr/&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; for me (and gets replaced every time Alfresco is started).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Place the copies in &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/tomcat/shared/classes/alfresco/extension&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rename them &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;xxxx-log4j.properties&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; e.g. &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;solr-log4j.properties&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit the file path&amp;nbsp; e.g. &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;log4j.appender.File.File=/&amp;lt;your_path&amp;gt;/tomcat/logs/solr.log&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restart Alfresco and you should see the log files appear in the location you specified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if it doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 05:44:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264800#M217930</guid>
      <dc:creator>ed008</dc:creator>
      <dc:date>2013-10-30T05:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Solr log files (change location)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264801#M217931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@ Ed008&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried your above instructions and I can't get the files to change locations. Do I need to do something with the original files by chance or just leave them alone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I did was take the 4 files for alfresco, share, awe, and Solr. Renamed them to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alfresco.log4j.properties….etc for each one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Placed them in tomcat/shared/classes/alfresco/extension…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restarted alfresco and I only have the alfresco.log file working. I've pointed the log location for all 4 files to go to /var/log/Alfresco/filename.log&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should there be something else that I should be doing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CentOS 6.4 on alfresco 4.2.d&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:07:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264801#M217931</guid>
      <dc:creator>eswbitto</dc:creator>
      <dc:date>2013-11-04T20:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Solr log files (change location)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264802#M217932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just checking, are you filenames alfresco.log4j.properties with a '.' (period) or alfresco-log4j.properties with a '-' (dash)? The - worked for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm not sure if it's relevant but might be worth checking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't do anything to the original log4j.properties files and before I fixed this the log files would appear in the root drive or &amp;lt;tomcat&amp;gt;/logs/ depending on how alfresco was started. Using the full path in the custom-log4j.properties files has solved that issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the contents of my solr-log4j.properties file if it helps and in this case the alfresco directory is in the root of the disk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set root logger level to error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.rootLogger=WARN, Console, File&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;###### Console appender definition #######&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# All outputs currently set to be a ConsoleAppender.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.Console=org.apache.log4j.ConsoleAppender&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.Console.layout=org.apache.log4j.PatternLayout&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.Console.layout.ConversionPattern=%d{ISO8601} %x %-5p [%c{3}] [%t] %m%n &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;###### File appender definition #######&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File=org.apache.log4j.DailyRollingFileAppender&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.File=/Alfresco/tomcat/logs/solr.log&amp;nbsp;&amp;nbsp; ##### this is the only line i changed ####&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.Append=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.DatePattern='.'yyyy-MM-dd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.layout=org.apache.log4j.PatternLayout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.appender.File.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c] %m%n&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For &amp;lt;strong&amp;gt;alfresco, share, etc&amp;lt;/strong&amp;gt; if I modified the log4j.properties in their path the log file path changed I just put the custom log4j.properties files all in extensions to make future updates easier, it was only &amp;lt;strong&amp;gt;solr&amp;lt;/strong&amp;gt; that was causing me trouble originally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know how you get on and I'll see what else I can find if it doesn't work for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 01:16:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264802#M217932</guid>
      <dc:creator>ed008</dc:creator>
      <dc:date>2013-11-06T01:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Solr log files (change location)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264803#M217933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done the same steps in Mac OSX. I see the empty log files created in tomcat/logs location. But in the root, we have the log files with daata. Just followed your step as given below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Copy the log4j.properties files from respective location for all the appications (share, alfresco, awe, solr) to shared/classes/extention and renamed each file to respective application (share-log4j.properties)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. updated the log file path (/Applications/alfresco-4.2.2/tomcat/logs/)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. restart the alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if we need to remove the original files from the original location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ravi Pandikunta&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 13:25:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr-log-files-change-location/m-p/264803#M217933</guid>
      <dc:creator>pnkrravi</dc:creator>
      <dc:date>2014-09-16T13:25:32Z</dc:date>
    </item>
  </channel>
</rss>

