[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Web Usage Logs and their Magic Numbers



> I have a customer on our RaQ2 who constantly has a web usage
> report over 11 MB's.  11 Meg of clear text.  It's actually kind
> of maddening.  Anyway, they get upset when the file resets itself
> and they lose over a month or more of information.  Does anyone
> know the "magic number" as in how large the RaQ allows the file
> to get before it deletes it out right and let's the site begin to
> rebuild?
>

Knowlege base:
These instructions refer to the RaQ ONLY!
Do not attempt to use these instructions with other products

QuestionNum: 593
Product: RaQ
Category Software
Creation Date: Mon Jul 19 11:21:24 1999 PDT

Question
Are Log files for the virtual hosts on the RaQ rotated automatically?


Response
Yes, logs are rotated automatically. The logs are rotated depending on the
size of the log and which log file it is. For an exact account of when each
log is rotated, you can view the rotate scripts in the /etc/logrotate.d/
directory. Listed below is an example of the log rotating for the Web
server:
/var/log/httpd/home-access

compress
size 30M
postrotate
killall -USR1 httpd
endscript
}

/var/log/httpd/home-error

compress
size 5M
postrotate
killall -USR1 httpd
endscript
}

It rotates the home-access log when it reaches 30 Megabytes and the
home-error log when it reaches 5 Megabytes.