[rsyslog] rsyslog with apache and per vhost log
rgerhards at hq.adiscon.com
Wed Mar 12 14:44:31 CET 2008
> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of Maurizio Rottin
> Sent: Wednesday, March 12, 2008 2:37 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] rsyslog with apache and per vhost log
> 2008/3/12, Rainer Gerhards <rgerhards at hq.adiscon.com>:
> > > mmmmm...i'll check that better but at a glance it seems a heavy
> > > process with big logs.
> > Sorry, I don't really understand what you mean ;) But the problem is
> > that I probably do not really know how what you do with logger
> > works. It is part of the apache config, is this right? Maybe you
> > post a full config sample?
> but i did...
> this is the log part in the <virtualhost> directive
> ErrorLog "|/usr/bin/logger -p local5.err -t error_www.mysite.com"
> CustomLog "|/usr/bin/logger -p local6.info -t www.mysite.com "
> in practice i pass the ErrorLog and CustomLog to /usr/bin/logger with
> facility "-p local*.xxx" with tag "-t www.mysite.com"
> then i can use the tag to split logs by website in the remote rsyslog
> machine ;)
Ah, OK, I didn't realize this was actual Apache config. So your original
> just one question, do you know any way to pass the website name in
> "/usr/bin/logger -p local5.err -t error_www.mysite.com", even using an
> other program...i know only logger...
was how you could use the same apache config command for each log, so
that you don't need to have separate apache config statements for each
Please bear with me if I am getting it wrong, I probably have too much
rsyslog on my mind. I am trying to help but I don't get a grip at what
the real problem is...
More information about the rsyslog