Alfresco Community 5.2 replication

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Alfresco Community 5.2 replication

Hi, we are using replication in version 5.2 and in the target server we are generating very large log files.

In the folder Inbound Transfer Records every execution is created a 31Mb file with xml extension. The files are called 20181015115929625+0200.xml and with similar names. If we schedule the job every hour we generate +700Mb every day and we have to purge manually.

Is it possible to generate less trace info or cron a automtic purge process?.

Thanks.

Alberto.

4 Replies
Highlighted
Alfresco Employee

Re: Alfresco Community 5.2 replication

You can override transferReporter Spring bean to provide less verbosity.

Originally it's declared at transfer-service-context.xml 

   <bean id="transferReporter" class="org.alfresco.repo.transfer.report.TransferReporterImpl" init-method="init" >
         <property name="contentService" ref="ContentService" />
         <property name="nodeService" ref="NodeService" />
   </bean>

Alternatively you can define a rule on the folder to purge or move away the report file once it's generated.

Software Engineer in Alfresco Search Team.
Highlighted
Member II

Re: Alfresco Community 5.2 replication

Hi Angel, thanks for the answer.

I can't find the xml file, is it packed in a jar file?.

We are testing the rule too but only allows us to copy or move the file, not delete. Can we move the log file to filesystem?

Thanks.

Alberto.

Highlighted
Alfresco Employee

Re: Alfresco Community 5.2 replication

transfer-service-context.xml file is packed inside alfresco-repository-xxx.jar

Anyway you don't need to modify this file, you can override transfer-reporter Spring Bean just using default Alfresco SDK standard procedures.

You cannot move a file from Alfresco to filesystem by using default rules. You should create a repository module for that by using JAVA API.

Software Engineer in Alfresco Search Team.
Highlighted
Member II

Re: Alfresco Community 5.2 replication

Hi Angel, we are testing webdav access to mount the filesystem and purge the log files:

mount -t davfs http://localhost/alfresco /opt/alfresco/rep_log 

With this solution we are creating a shell script to extract log information to text file and purge the alfresco files.

Thanks a lot.

Alberto.