One Star

Logrotate configuration

Hello all,
I was wondering if one could configure logrotate to get rid of some zip files laying around in tmp folders, without hurting functionality of TIS.
Example:
# pwd
/opt/talend/tmp
# du -sm cmdline/*/*
1 cmdline/exports/Input
79 cmdline/exports/task_1
16 cmdline/exports/task_10
120 cmdline/exports/task_11
75 cmdline/exports/task_2
51 cmdline/exports/task_3
27 cmdline/exports/task_4
50 cmdline/exports/task_5
324 cmdline/exports/task_6
33 cmdline/exports/task_7
238 cmdline/exports/task_9
# ls cmdline/exports/task_9
1317303110125_task_9.zip 1317379245957_task_9.zip 1317380169562_task_9.zip 1317714849758_task_9.zip 1317725105337_task_9.zip 1317725465476_task_9.zip 1317728166377_task_9.zip 1317733025205_task_9.zip
1317307480289_task_9.zip 1317379628134_task_9.zip 1317648819895_task_9.zip 1317724745724_task_9.zip 1317725285618_task_9.zip 1317727808610_task_9.zip 1317728705270_task_9.zip 1317733206948_task_9.zip

I am assuming these can be cleaned up regularly to save disk space? Same for stuff in jobserver/TalendJobServersFiles/archiveLogs?
Anyone has some working configuration and advices?
Thanks a lot for any feedback.
fred
2 REPLIES
Employee

Re: Logrotate configuration

Hi Fred,
You can set up the automatic cleaning of logs by editing the TalendJobServer.properties file in the configuration folder of the Job Server.
One Star

Re: Logrotate configuration

Perfect, reduced the actual time for cleaning to 15 days. Thanks a lot Smiley Happy