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.
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.
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.
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.
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.