Re: SQUID Log in PostgreSQL

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: "Vishal Kashyap (at) [SaiHertz]" <vishalonlist(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: SQUID Log in PostgreSQL
Date: 2004-12-20 23:53:00
Message-ID: 200412201553.00617.scrawford@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Saturday 11 December 2004 9:39 am, Vishal Kashyap @ [SaiHertz]
wrote:
> Dear PostgreSQL Enlightened ,
>
> Is their any plugin or work around that would allow me to log Squid
> jobs into PostgreSQL ?

Assuming Squid is set up to write to syslog try the modular syslog
daemon: http://sourceforge.net/projects/msyslog/

Msyslogd has various modules/filters for input to and output from
syslog including an output module to write syslog info to PostgreSQL.
In my case the message part of each syslog entry has a specific
format so I modified the PostgreSQL module to further parse the
message into appropriate columns.

It's worked quite well and, like PG, has proven reliable (the
connection from the msyslog daemon to PG has been up for about a
year).

Cheers,
Steve

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-12-21 00:31:54 Re: CAST and timestamp
Previous Message Christopher Browne 2004-12-20 23:31:04 Re: slony replication