Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

iTools

Re: Log Archiving

To: itools@xxxxxxxxxxxxxxx
Subject: Re: Log Archiving
From: eyang@xxxxxxxxxxxxxx (Eric Yang)
Date: Wed, 21 Aug 2002 09:55:35 -0700
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
--------------------------------------------------------------------------------------------------
<Prev in Thread] Current Thread [Next in Thread>

| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists