90days log

kke

Verified User
Joined
Apr 4, 2006
Messages
198
Location
Thailand
HI, all

Now a day in thailand have a new laws about computer crimes,
that we have to keep logs files for at lease 90 days.

for proftpd exim httpd has no problem since it's rotate by logrotation
and can easily copy the .0 everyday after midnight, the latest log file of yesterday always .0

but apache virtual host logs that controled by DAtaskq (tallyall) at 00.30 is a big problem.
Because DA keep suffix in reverse way compare to logrotation
the latest log alway the maximum number and change accordingly to number of days set in admin settings, will be great if DA do it same as log rotation

The easiest way for us is just set number of apache log in admin setting to 90 days, but by this way the huge number of diskspace usage by log will effect hosting plan especially high traffic site.

Is there a way to exclude apache log from user disk usase, or it already excluded?
 
I just checked one of my (CentOS) DirectAdmin systems; logs are owned by root, so their used space won't be tallied by DirectAdmin.

Jeff
 
Thanks Jeff,

As I check and test I also believe that log owned by root are excluded from user disk usages, but seem like many people confuse to believe that log size are included since there are log size column in DA page that actually from current log files in /var/log/httpd/domains/ not from /home/user/domains/domain.com/logs/ like many people misunderstand.

Do I right understand?
 
Only DA staff knows which logs, if any, are tallied by them; I hope they'll respond here.

Jeff
 
Thanks all,

So I could leave 90 days setting in admin settings without effect user disk usage.

Or in another way I may turn rotation=0 and do rotate it manually everynight and keep at somewhere I like.

:)

KKE
 
because off new laws in europe we have to keep the logs a few months, is it possible that after the logs are rotated the logs are uploaded to a ftp or ssh server? with file names in the following format? date_server.log or something like that?
 
Back
Top