Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 59302 invoked from network); 16 Jun 2005 15:13:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jun 2005 15:13:00 -0000 Received: (qmail 65279 invoked by uid 500); 16 Jun 2005 15:12:43 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 65194 invoked by uid 500); 16 Jun 2005 15:12:42 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 65180 invoked by uid 99); 16 Jun 2005 15:12:42 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from maillb.solcon.nl (HELO mailrun01.solcon.nl) (212.45.32.200) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 16 Jun 2005 08:12:42 -0700 Received: from srv-solcon-01.solcon.local (ipass.solcon.nl [212.45.32.70]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j5G7WaKt008804 for ; Thu, 16 Jun 2005 09:32:37 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C57245.C1690F88" Date: Thu, 16 Jun 2005 09:33:56 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Remote Logging access_log with syslog-ng Thread-Index: AcVx36XlcDB0dNMWQnWaxcrCavORhwAZbCwg From: "Jan van den Berg" To: X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on mailrelay01 X-Virus-Status: Clean X-Virus-Checked: Checked Subject: RE: [users@httpd] Remote Logging access_log with syslog-ng X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C57245.C1690F88 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I know. =20 But this is exactly whay I am trying to avoid! I don't want too many open files (which happens when every vhost has their own logfiles) nor do I want logger threads for each vhost. I want logger and syslog too handle the load of logging not Apache. =20 Regards, =20 Jan ________________________________ Van: PMilanese@nypl.org [mailto:PMilanese@nypl.org]=20 Verzonden: woensdag 15 juni 2005 19:51 Aan: users@httpd.apache.org Onderwerp: RE: [users@httpd] Remote Logging access_log with syslog-ng =20 You can pipe vhosts to their own logs. There is no way that I know of to put this in the main config though (i.e. servername as a variable), so you need to create CustomLog entries for each vhost, putting the servername as an argument (or in the filename). =20 P =20 ________________________________ From: Jan van den Berg [mailto:janvdberg@solcon.nl]=20 Sent: Wednesday, June 15, 2005 9:53 AM To: users@httpd.apache.org Subject: [users@httpd] Remote Logging access_log with syslog-ng =20 Hi, =20 (please ignore my last post) =20 Right now I have a syslog-ng server that logs all access_log files from different virtual hosts in one big file. But Im looking for a way to log accesslogs to virtualhostname.log files instead of one big file. =20 My setup: =20 CustomLog "| /usr/bin/logger -p local7.info" combined =20 This opens one Logger thread under the Apache main thread and puts all the logger information in one big file. =20 The following setup does what I want; but this opens a bash thread under Apache.. not something you want. =20 LogFormat "logger -t %v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined2 CustomLog "|/bin/bash" combined2 =20 With the following in syslog-ng.conf: destination localhost_site_access{ file("/var/log/apache/$PROGRAM"); }; =20 This works in a sense that it puts the different VirtualHost logs in logs with their name. This is what I want but I don't want to use the 'bash' solution. Maybe it's possible to hack /usr/bin/logger: I need a way to specify a $PROGRAM name in syslog-NG. Or is their another solution? =20 Any tips? =20 Regards, Jan =20 ------_=_NextPart_001_01C57245.C1690F88 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I = know.

 

But this is = exactly whay I am trying to avoid! I don’t want too many open files (which = happens when every vhost has their own logfiles) nor do I want logger threads = for each vhost.

I want logger = and syslog too handle the load of logging not Apache.

 =

Regards,

 

Jan


Van: PMilanese@nypl.org [mailto:PMilanese@nypl.org]
Verzonden: woensdag 15 = juni 2005 19:51
Aan: = users@httpd.apache.org
Onderwerp: RE: = [users@httpd] Remote Logging access_log with syslog-ng

 

You can pipe = vhosts to their own logs. There is no way that I know of to put this in the main = config though (i.e. servername as a variable), so you need to create CustomLog = entries for each vhost, putting the servername as an argument (or in the = filename).

 =

P

 =


From: Jan van den Berg [mailto:janvdberg@solcon.nl]
Sent: Wednesday, June 15, = 2005 9:53 AM
To: users@httpd.apache.org
Subject: [users@httpd] = Remote Logging access_log with syslog-ng

 

Hi,

 

(please ignore = my last post)

 =

Right now I have a syslog-ng server that logs = all access_log files from = different virtual hosts in one big = file.

But Im looking for a way to log accesslogs = to  virtualhostname.log files instead = of one big file.

 

My setup:

 =

CustomLog = "| /usr/bin/logger -p local7.info" = combined

 =

This opens one = Logger thread under the Apache main thread and puts all the logger information = in one big file.

 =

The following = setup does what I want; but this opens a bash thread under Apache.. not something = you want.

 =

LogFormat = "logger -t %v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" = combined2

CustomLog "|/bin/bash" combined2

 =

With the = following in syslog-ng.conf:

destination localhost_site_access{ file("/var/log/apache/$PROGRAM"); = };

 =

This works in a = sense that it puts the different VirtualHost logs in logs with their name. = This is what I want but I don’t want to use the ‘bash’ = solution.

Maybe it’s = possible to hack /usr/bin/logger: I need a way to specify a $PROGRAM name in = syslog-NG. Or is their another solution?

 =

Any = tips?

 =

Regards,

Jan

 

------_=_NextPart_001_01C57245.C1690F88--