I have about 4gb of old log files on /var/log mainly on /var/log/apache2 the files like access.log.(number).gz are taking a lot of space I thought ISPConfig would remove the files older than a month but its removing just the logs under the clients log folder and not the main linux logs So can I manually remove the old files under /var/log? Is there any way I could set up a cron to clear the files older the a month?
but in this thread https://www.howtoforge.com/communit...rotation-not-configured-in-ispconfig-3.37072/ till says that if I use logrotate it will conflict with ISPConfig
you can use this cron to remove log older 180 days Code: #!/bin/sh find /var/log/ -type f -mtime +180 -delete
But only the logs in doc-root/log and /var/log/ispconfig/httpd/, but not in /Var/log/apache2 or /var/log/mail.log.