Page 1 of 1
How to delete domlogs?
Posted: Thu Mar 26, 2015 3:34 pm
by salehammara
Hi
I found that domlog size on my server getting bigger and bigger.
I want to delte or don't create the domlogs.
Re: How to delete domlogs?
Posted: Wed Apr 01, 2015 2:26 pm
by michaelsmith2345
Hello ,this solution may be help you ,try this one
Add at the end of the crontab file:
02 4 * * * root rm -rf /home/apache/domlogs/*
/etc/init.d/crond restart
This should delete your logs daily.
Re: How to delete domlogs?
Posted: Thu Apr 02, 2015 9:30 am
by davisbrian806
i want know is this solution delete only domlogs file or any others logs also,
please confirmed it for me because i don't want delete any other file.
Re: How to delete domlogs?
Posted: Thu Nov 18, 2021 4:03 am
by Addison
Cropping the domlogs may be done with a cPanel script.
"/scripts/cropdom"
To run this script, you'll need root access. If the log size is expanding in an unusual manner, you should investigate the source of the excessive logging. It might happen as a result of a website's mistake.
Examine the logs' size and depth, looking for the source of the problem. There is no alternative method to resolve this problem.
Re: How to delete domlogs?
Posted: Tue Dec 28, 2021 3:07 am
by chaserichard448
LogView may be downloaded at logview.org ->
http://www.logview.org/content/view/5/26/
This will provide you greater flexibility when it comes to rotating the logs.
You may also use the domainlogs option to examine the logs for a specific domain.