Author Topic: Can I delete Giant Log file in "/usr/local/apache/logs"?  (Read 7699 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can I delete Giant Log file in "/usr/local/apache/logs"?
« on: January 27, 2021, 08:26:44 AM »
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.

Offline
*****
Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
« Reply #1 on: January 27, 2021, 05:43:19 PM »
yes you can delete it.

Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
« Reply #2 on: January 27, 2021, 06:59:25 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..

Offline
*****
Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
« Reply #3 on: January 28, 2021, 11:45:16 AM »
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.
« Last Edit: January 28, 2021, 11:48:17 AM by Sandeep »

Offline
*****
Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
« Reply #4 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:

Code: [Select]
# 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

Offline
*
Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
« Reply #5 on: February 19, 2021, 07:41:30 AM »
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.,


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:

Code: [Select]
# Logrotate CWP
/usr/local/apache/domlogs/*.log {
        compress
        delaycompress
        daily
        missingok
}
/usr/local/apache/logs/*.log {
        compress
        delaycompress
        daily
        missingok
}


Offline
*
Re: Can I delete Giant Log file in "/usr/local/apache/logs"?
« Reply #7 on: February 20, 2021, 03:27:12 AM »
Thank you very much Sandeep.
God bless you,
Hoped you are always healthy and happy!

you can try this tutorial
https://www.mysterydata.com/how-to-clean-all-log-files-in-cwp-control-webpanel-to-gain-disk-space/