• Support
  • Put Log cleanup 1.3 function in Cron Job to set automatically Cleanup

itsgaggu I'm very sorry to see this message, but in general the logs output from the execution of scheduled tasks are very small, basically they output the result of the execution action, the output during the process is not recorded. We will improve this area as soon as possible, thanks for your feedback!

    aapanel_power but in general the logs output from the execution of scheduled tasks are very small

    He is not talking about "the logs output from the execution of scheduled tasks", he is talking about

    a cron job to clean System Logs
    a cron job to clean Mailbox Logs
    a cron job to clean Website Logs

      17 days later

      Bump of this.. Need this a lot. My website is always down because the space full with mysql logs like 100gb for logs only. Need to do manually clean logs. Please provide a cronjob to do the clean up task.

        gasak

        idflorin
        Sorry for not understanding the meaning before, please open your MySQL configuration file and look at the log here, the default is to keep it for 10 days, if your MySQL is not restarted or things are committed, it will generate a copy every day.

        8 months later

        thiagotgc
        Hello, you can do it manually, but it is not recommended. If you delete the wrong mysql, it will not work.
        In the configuration file: expire_logs_days = 10 save 10 days by default,

          thiagotgc
          Hello, please check if your configuration file is set
          expire_logs_days = 10
          If it is, it will keep you for 10 days, no manual cleaning at all.

          6 months later

          aaP_himepo5399
          Hello, the cron of the panel does not support direct clearing. But it is possible to cut logs and compress