|
Try this:
CustomLog "|/usr/sbin/rotatelogs
/var/log/httpd/archive/virtualhost1/virtualhost1 2592000"
combined
This will automatically rotatelogs and generate:
/var/log/httpd/archive/virtualhost1/virtualhost1.1028743200
You can run a shell script to rename the epoch time to the date
each month, or look at the file
by it's creation date. Hope this helps.
regards,
Eric
On Wednesday, August 21, 2002, at 07:32 AM, Dan Tappin
wrote:
Does anyone have a good script / method
for rolling logs?
I have setup custom logs for each of my
VH's not I am looking to roll the
logs each month. For
example:
/var/log/httpd/virtualhost1.log
to:
/var/log/httpd/archive/virtualhost1/virtualhost1-06012002.log
/var/log/httpd/archive/virtualhost1/virtualhost1-07012002.log
/var/log/httpd/archive/virtualhost1/virtualhost1-08012002.log
Ect..
Tenon has a perl log script but it also
parses the log and splits the VH's
out which I don't need to
do.
Thanks,
Dan
---------
---------
Tenon Intersystems' iTools Mailing
List
To unsubscribe: send
mailto://itools-request@xxxxxxxxxxxxxxx
with the subject:
unsubscribe
Find searchable mailin list archives
at:
http://itools.blackpepper.co.
--------------------------------------------------------------------------------------------------
Eric
Yang
Senior Software Engineer
Tenon
Intersystems
eyang@xxxxxxxxx
1123 Chapala
Street
805-963-6983
Santa Barbara, CA
93103
http://www.tenon.com
--------------------------------------------------------------------------------------------------
|