cronolog.org
flexible web log rotation
HOME
DOWNLOAD
FEATURES
USAGE
FAQ
BLOG
KNOWN BUGS
SECURITY
PATCHES
USERS
TO DO
HISTORY
LINKS
FEEDBACK
MAILING LIST
ADVERTISING

support cronolog development



Google   HELP


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

Re: CRONOLOG: Multiple Virtuals



Hi,
I was wondering about this a while back. This is what I did because I
was concerned about log rotation weirdness. It seems to work okay.
<VirtualHost ...#1>
  CustomLog "|/usr/local/sbin/cronolog
--symlink=/var/log/httpd-access-cim.log
/home/var/logs/cim/%Y.%m.access.log" combined  
  ErrorLog "|/usr/local/sbin/cronolog
--symlink=/var/log/httpd-error-cim.log
/home/var/logs/cim/%Y.%m.error.log"
</VirtualHost>
<VirtualHost ...#2>
  ErrorLog /var/log/httpd-error-cim.log
  CustomLog /var/log/httpd-access-cim.log combined
</VirtualHost>
Victor wrote:
> 
> ----- Original Message -----
> From: "Rodney Broom" <rbroom@xxxxxxxxxx>
> To: <cronolog-users@xxxxxxxxxxxxxxxx>
> Sent: Tuesday, October 02, 2001 2:49 PM
> Subject: Re: CRONOLOG: Multiple Virtuals
> 
> > From: Victor <victord@xxxxxxxx>
> >
> > Hi Victor,
> >
> > This group is rather quiet, so I'll give this a shot.
> 
> This group is not just quiet, it's almost desolate. Must be because CRONOLOG
> is so easy to use ;)
> 
> > > What is the proper way that multiple virtual servers should reference
> the
> > > same log file?
> >
> > Do they need to write to the same log file?
> 
> Yes. Unfortunately that's what required.
> 
> > > Should all be the same?
> >
> > You could simply try giving them all the same log file name and just see
> what happens. I would guess that cronolog has a private handle on the file
> and that multiple instances will have problems writing to the same file, but
> definately try it.
> >
> > I've had multiple log files to deal with in the passed, and I just sorted
> them back together into a single log file before archiving. It was one more
> step, but it worked very well.
> 
> Well, I don't think it should be that way since apache has no issues logging
> to the same file. I am curious how cronolog would deal with this possibility
> though as it is not covered in the docs (as far as I can find).
-- 
________________________________________________________________
Paul Wolstenholme
SMA Webware
http://www.zzube.com/
What do you know?
http://make.zzube.com/
Vancouver, BC Canada
begin:vcard 
n:Wolstenholme;Paul
x-mozilla-html:FALSE
org:SMA Webware
adr:;;;;;;
version:2.1
email;internet:paul@xxxxxxxxx
note;quoted-printable:-----BEGIN PGP PUBLIC KEY BLOCK-----=0D=0AVersion: PGPfreeware 6.5.2 for non-commercial use <http://www.pgp.com>=0D=0A=0D=0AmQENAziGD+8AAAEIAN/sBjsAb6WDbV/qluL84+8WEFeKeaNJz6tn7Apv9r2AQDij=0D=0ANGzTtI+LEa/9xjldoBVMU1xJ3/PIldVRYEV+DFuk9QSy9NXZIVMHJ4QtpgKtHA3I=0D=0ArW14kJFnQVxKZtotdqPKIEA6p5MwU0tomsclW7f6KM8OorTi50JiFAj9ChHZFEFg=0D=0AAouW5EcmpGbsEeFXaoGc966YIFJAVQdeiVodyx9N89X0nMFnI9pFeAWB5ZBvCQtv=0D=0Aa4kG6em8AhmFt0A07+GibkCEv0Skh4rFVXQtmnK1mqbvcI3Il1VZ/8U4YLPjXs/m=0D=0AfFbFwKs1ONUrMTcUaNUTwLupq8N4qYnNswx35BMABRG0I1BhdWwgV29sc3Rlbmhv=0D=0AbG1lIDx3b2xzdGVuYUBzZnUuY2E+iQEVAwUQOIYP76mJzbMMd+QTAQGEsQf9Ereu=0D=0A6o6AVeKYE9jQPvYzLZUHLObpVyDhYT2RTiXaX9MroSWwxIFuINy92AGiDshqYufY=0D=0AACZH5yRJgyBhKLgMkl48Sr0bfsu7P20Uch2F0JCYz6UhS6tV/LS+3eueh55a03Mm=0D=0AScE4HitUVLJTyddaSQZAS2yL0lrylLUWfja3tt/bV1J+pHcQa+WHfX5ZEsGhIE/E=0D=0Ahm6eGYrOjfaFRmIyOcCVZh0umjRYu2GguKIiFGNPb81CV7mzkdNXWpiuSkRlXhv+=0D=0A0yeq1e9Bxg9xRITgvDqH+zbrgiChIcjjX0raKHadlNclOMrELgJjWHc+1iuo845S=0D=0AUBCIEjVYoiAT7TopJA=3D=3D=0D=0A=3DdMDP=0D=0A-----END PGP PUBLIC KEY BLOCK-----
x-mozilla-cpt:;-15744
fn:Paul Wolstenholme
end:vcard

Copyright © 1996-2010 Andrew Ford and Ford & Mason Ltd