Sauce Labs Customer Idea Portal

Submit an idea and make Sauce Labs even better!

Clean up of the old sauce connect logs by the Sauce connect service

Currently the SauceConnect proxy service do not support deleting any old logs that are n days old. It supports to rotate the log after reaching the specified size. 
So we need to end up coming up with a scheduled task to clean up the old logs.

It would be ideal for the service to have this capability. We can add a new command line flag like: 
--log-retention-days <n>

When this flag is specified any older logs that are >= n+1 can be deleted.

With this feature: we do not need to 
a. manage the log clean up through another script\cron job 
b. we need to ensure that job is replicated on all sauce connect node etc.,

  • Guest
  • Apr 5 2018
  • Will not implement
  • Attach files
  • Admin
    Chandra Yalangi commented
    24 May 17:14

    Hi Venkata,

    Thanks for your input on cleaning up old logs. As we discussed a while ago, our recommendation on Unix platforms is to use industry standard tools like logrotate and to avoid using the --log-retention-days Sauce Connect option. I don't have a good recommendation for Windows platform but Google search shows some potential options from logrotate clones to shell scripts. Our decision at this time is to not add any new log cleanup functionality to Sauce Connect.


    Best regards,

    Chandra