Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
ganeshK
Contributor
Contributor

Clearing Log files from server

Hi,

I am seeing continuous growth of log files. How do i clear / rename for backups.

  1. Talend\logs\logs_file & stats_file
  2. Talend\Administrator\executionLogs

Thanks in advance.

Regards,

Ganesh.R

Labels (2)
1 Reply
Anonymous
Not applicable

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