From owner-freebsd-questions Thu May 21 09:23:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA02746 for freebsd-questions-outgoing; Thu, 21 May 1998 09:23:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from peanut.readington.com (peanut.readington.com [207.207.198.120]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA02728 for ; Thu, 21 May 1998 09:23:36 -0700 (PDT) (envelope-from chrismar@peanut.readington.com) Received: from localhost (chrismar@localhost) by peanut.readington.com (8.8.7/8.8.7) with SMTP id LAA01268; Thu, 21 May 1998 11:27:37 -0400 (EDT) (envelope-from chrismar@peanut.readington.com) Date: Thu, 21 May 1998 11:27:37 -0400 (EDT) From: Chris Martino To: Cliff Addy cc: questions@FreeBSD.ORG Subject: Re: reading a web server log file In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I don't know what you are trying to do with the log file, but if you are trying to view your hits and from where, then someone has already done it for you. I found that a little perl script called "Accesswatch" with parse the logfile and tell you what your visitors saw, where they came from, which browser they were using, and it guesses hoe many hits you *should* get on how many hits you've gotten so far. You can find accesswatch at http://www.accesswatch.com Chris ps- I am in no way affiliated with accesswatch -- Chris Martino chrismar@readington.com On Wed, 20 May 1998, Cliff Addy wrote: > I'm trying to write a program that monitors an Apache log file. My > question is: If I open the file and fseek to the end, is there any chance > I'll end up in the middle of a logfile line because Apache was in the > middle of writing a file? Or is that impossible? > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message