Hello,
I have giant log files in "/usr/local/apache/logs",
access_log - 20 GB
modsec_audit.log - 8,5 GB
error_log - 3 GB
suphp_log - 3 GB
Can I delete them?
Thank you very much.
yes you can delete it.
Quote from: Sandeep on January 27, 2021, 05:43:19 PM
yes you can delete it.
Not that helpful.
As mentioned in another thread, CWP provide a GUI to help you utilise logrotate.
One can lead a horse to water..
Quote from: cynique on January 27, 2021, 06:59:25 PM
Quote from: Sandeep on January 27, 2021, 05:43:19 PM
yes you can delete it.
Not that helpful.
As mentioned in another thread, CWP provide a GUI to help you utilise logrotate.
One can lead a horse to water..
so your horse can lead to sea to become a sea horse. I just answered him what he asked.
Hey, if you will delete log files you can lost your working WEB server. Stop it, guys. You must not delete anything you did not create!
Just clean the big logs or configure logrotate. The simplest logrotate config below:
# Logrotate CWP
/usr/local/apache/domlogs/*.log {
compress
delaycompress
daily
missingok
}
/usr/local/apache/logs/*.log {
compress
delaycompress
daily
missingok
}
Thank you very much,
Thanks God, I haven't delete the file.
Do you have a complete tutorial for this LOGROTATE?
Thank you very much
Igor S.,
Quote from: Igor S. on February 01, 2021, 09:43:48 AM
Hey, if you will delete log files you can lost your working WEB server. Stop it, guys. You must not delete anything you did not create!
Just clean the big logs or configure logrotate. The simplest logrotate config below:
# Logrotate CWP
/usr/local/apache/domlogs/*.log {
compress
delaycompress
daily
missingok
}
/usr/local/apache/logs/*.log {
compress
delaycompress
daily
missingok
}
you can try this tutorial
https://www.mysterydata.com/how-to-clean-all-log-files-in-cwp-control-webpanel-to-gain-disk-space/
Thank you very much
Sandeep.
God bless you,
Hoped you are always healthy and happy!
Quote from: Sandeep on February 20, 2021, 02:45:07 AM
you can try this tutorial
https://www.mysterydata.com/how-to-clean-all-log-files-in-cwp-control-webpanel-to-gain-disk-space/