AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
I won't delete these log files, if I were you. If you insist, you can empty them by issuing this command at the prompt: cp /dev/null log_file
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
34
473
Go on, have a guess
Chris,

Which logs are you referring to? If you mean the domlogs, then you can save space at the risk of tracing issues in those log files, by checking WHM > Tweak Settings > Delete each domain's access logs after stats run. That way they'll be cleared down once your stats apps have finished processing them. It does mean, though that if you have a compromise through the web server it makes it much more difficult to track down as the logs may well have been purged.
 

Chris Blount

Member
Jan 30, 2004
6
0
151
chirpy said:
Chris,

Which logs are you referring to? If you mean the domlogs, then you can save space at the risk of tracing issues in those log files, by checking WHM > Tweak Settings > Delete each domain's access logs after stats run. That way they'll be cleared down once your stats apps have finished processing them. It does mean, though that if you have a compromise through the web server it makes it much more difficult to track down as the logs may well have been purged.
I know about the domlogs and yes, the system does purge them every month.

What I'm referring to are the www logs that are copied when the backups run. It seems to take a long time. Are the www logs the same as the domlogs?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
34
473
Go on, have a guess
Well, there are the site specific logs in /usr/local/apache/domlogs and there are the server-wide logs in /usr/local/apache/logs. I was referring to the ones in domlogs, if you're referring to the ones in logs which are not domain specific, then you should add them correctly into logrotate - you can search the forums on how to do that.
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
/usr/local/apache/domlogs are "site specific" logs;
/usr/local/apache/logs are "Apache specific" logs;
/var/log/* are the server-wide logs.
 

Stanleytiew

Well-Known Member
May 9, 2005
143
0
166
what will happen if I delete all log files in:

/usr/local/apache/domlogs
/usr/local/apache/logs
/var/log/

my /var is 86% full and wonder if I delete all the files it will effect the server operation. Anybody kindly assist.
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
Stanleytiew said:
what you mean by empty the file, how to do it?
Here is a sample script which can do the job


cd /usr/local/apache/domlogs/
for x in `ls`;
do
echo "" > $x;
done;
 

Stanleytiew

Well-Known Member
May 9, 2005
143
0
166
Thank you, I'm able to empty the files in log folder, just to check out what is the files inside /var/log/audit.d the file inside this folder take out big space, can I remove this files

files look like this:

save.1
save.10
save.100
save.101
....
 

linux-image

Well-Known Member
Jun 8, 2004
1,190
1
168
India
cPanel Access Level
Root Administrator

Stanleytiew

Well-Known Member
May 9, 2005
143
0
166
Thank you very much, I discover that /var/log/audit.d taken so much of the space. I solved my problem.