From owner-freebsd-chat Fri Feb 2 13:47:54 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id F017937B401 for ; Fri, 2 Feb 2001 13:47:36 -0800 (PST) Received: from dorado.freebsd.org (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id f12LlXo05625 for ; Fri, 2 Feb 2001 15:47:34 -0600 (CST) Received: (from steve@localhost) by dorado.freebsd.org (8.11.1/8.11.1) id f12LlS247337 for chat@freebsd.org; Fri, 2 Feb 2001 15:47:28 -0600 (CST) (envelope-from steve) Date: Fri, 2 Feb 2001 15:47:28 -0600 From: Steve Price To: chat@freebsd.org Subject: per machine access logs in Apache Message-ID: <20010202154728.I15902@dorado.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Has anyone come up with a slick way of getting per machine access logs in Apache? Here's the scenario so that the question will make more sense. I have two servers load balancing a number of virtual hosts. Each of the website's files (including the access logs) are on another box. The webservers NFS-mount the appropriate directories to gain access to the files it needs. The problem I'm seeing is that since each webserver runs on a different machine I get garbled output in the logs. This is to be expected of course because Apache doesn't know about multiple machines writing to the log, rather only multiple processes on the same box which is why all logging is done through the master server. Ultimately I'd like to do something like this: TransferLog /usr/vhost1/logs/access.`hostname -s` Anyone run across this problem before? If so, how did you solve it? Thanks. -steve PS: Something else that might just work would be to log the files to a remote server like syslogd can. I just thought of this so I don't know if it would work. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message