Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am seeing continuous growth of log files. How do i clear / rename for backups.
Talend\Administrator\executionLogs
Thanks in advance.
Regards,
Ganesh.R
Hello,
There are 2 ways to remove the job files in jobserver.
#1 Clear the job files automatically
By default, talend jobserver will keep the latest 3 month archivejobs, jobexecutions,
You can change the value to keep less (e.g. 1 month= 2592000) in the file jobserver/conf/TalendJobServer.properties as the below, then restart the jobserver, it will clear the jobs and executionlogs which are over 1 month automatically.
# Time in seconds before cleaning executions logs from the current date, 3 months=3*30*24*60*60=7776000, set with 0 to disable delete action with this method
org.talend.remote.jobserver.commons.config.JobServerConfiguration.MAX_DURATION_BEFORE_CLEANING_OLD_EXECUTIONS_LOGS=2592000
# Time in seconds before cleaning archives and deployed jobs from the current date, 3 months=3*30*24*60*60=7776000, set with 0 to disable delete action with this method
org.talend.remote.jobserver.commons.config.JobServerConfiguration.MAX_DURATION_BEFORE_CLEANING_OLD_JOBS=2592000
# Time in seconds before cleaning cached libs from the current date, 3 months=3*30*24*60*60=7776000, set with 0 to disable delete action with this method
org.talend.remote.jobserver.commons.config.JobServerConfiguration.MAX_DURATION_BEFORE_CLEANING_OLD_LIBS=2592000
#2 Clear the job files manually
1. You can keep the latest file for the job and remove all the old ones in the 2 folder : 'archiveJobs', 'repository',
2. It's safe to delete the whole jobexecutions\logs folder
3. If you setup jobServer.useCache = false in TAC configuration.properties file, It's safe to delete the whole 'cache' folder, otherwise please DOES NOT delete any files in 'cache' folder.
You can run the below sql on TAC db to verify this parameter's value
select * from configuration c where c.key = 'jobServer.useCache'
NOTE, If you delete the files under 'TalendJobServersFiles' by mistake, don't worry about it, You can re-deploy the task in the TAC webUI to restore it, then the job can continue to work
Let us know if it helps.
Best regards
Sabrina