Can I delete Giant Log file in "/usr/local/apache/logs"?

Started by asrof_id, January 27, 2021, 08:26:44 AM

Previous topic - Next topic

asrof_id

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.


cinique

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..

Sandeep

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.

Igor S.

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 ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

asrof_id

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
}