pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Søren Laursen <sl@scrooge.dk>
To: pgsql-admin@postgresql.org
Subject: Re: Apache Logging to PostgreSQL
Date: Sun, 30 Dec 2007 19:09:06 +0100
Message-ID: <003701c84b0f$11ba8c10$352fa430$@dk> (raw)
In-Reply-To: <47778FE2.3050704@reedyriver.com>
References: <4776D003.9070702@zeut.net>
	<47778FE2.3050704@reedyriver.com>

Hi, 

I got pglogd running on postgresql 8.1.4 a debian sarge installation. I had
to compile it myself and my apache2 configuration look like this.
LogFormat "%t %D %>s %b %m %v %h \"%U\" \"%{Referer}i\" \"%{User-agent}i\"
\"%r\" %l %u" pglogd
CustomLog "/var/log/apache2/pglogd_fifo" pglogd

For a logtime ago I made some programs that can dump the tables in a format
that awstats can read and compute.


Regards,

Søren Laursen

-----Oprindelig meddelelse-----
Fra: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] På vegne af H. Hall
Sendt: 30. december 2007 13:33
Til: Matthew T. O'Connor; pgsql-admin@postgresql.org
Emne: Re: [ADMIN] Apache Logging to PostgreSQL

Matthew T. O'Connor wrote:
> Hello, I've been looking into having apache log to postgresql, and it 
> isn't clear to me what the best way to set this up is.  The options 
> that I see so far are:
>
> 1) Apache Pipe Logging:  This seems simple enough, but I'm not sure 
> what tool I would as the logging process?
>
> 2) pgLOGd: This isn't actively maintained anymore and apparently 
> doesn't work with PG8.x
>
> 3) pglogger:  Hasn't been updated since 2004, don't know if it's 
> production quality or not.
>
> 4) pglogger Apache Module:  Also hasn't been updated since 04.
>
> Doesn't anyone have any experience / advice for me?
>
> Thanks,
>
> Matt
Here's an article that might interest you:


       Datamining Apache Logs with PostgreSQL

You can find it at: 
http://www.onlamp.com/pub/a/onlamp/2005/03/03/pg_datamining.html

--cheers

>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
>
>


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings




view thread (5+ messages)

Message-ID: <003701c84b0f$11ba8c10$352fa430$@dk>
Permalink:  ../003701c84b0f$11ba8c10$352fa430$@dk/
Also on:    postgresql.org/message-id/003701c84b0f$11ba8c10$352fa430$@dk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: sl@scrooge.dk
  Subject: Re: Apache Logging to PostgreSQL
  In-Reply-To: <003701c84b0f$11ba8c10$352fa430$@dk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox