How to delete domlogs?

Description of your first forum.
Post Reply
salehammara
Posts: 8
Joined: Wed Jan 21, 2015 4:29 pm

How to delete domlogs?

Post by salehammara » Thu Mar 26, 2015 3:34 pm

Hi
I found that domlog size on my server getting bigger and bigger.
I want to delte or don't create the domlogs. :x

michaelsmith2345
Posts: 9
Joined: Thu Jan 22, 2015 4:38 pm

Re: How to delete domlogs?

Post by michaelsmith2345 » Wed Apr 01, 2015 2:26 pm

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.

davisbrian806
Posts: 8
Joined: Thu Jan 22, 2015 4:28 pm

Re: How to delete domlogs?

Post by davisbrian806 » Thu Apr 02, 2015 9:30 am

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.

Addison
Posts: 13
Joined: Mon Jan 19, 2015 3:01 pm

Re: How to delete domlogs?

Post by Addison » Thu Nov 18, 2021 4:03 am

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.

chaserichard448
Posts: 11
Joined: Thu Jan 22, 2015 4:39 pm

Re: How to delete domlogs?

Post by chaserichard448 » Tue Dec 28, 2021 3:07 am

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.

Post Reply
cron