Skip site navigation (1) Skip section navigation (2)

Re: syslog: log line length?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Michael Monnerie <michael(dot)monnerie(at)it-management(dot)at>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: syslog: log line length?
Date: 2007-07-18 15:05:01
Message-ID: 20070718150501.GD6651@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-admin
Michael Monnerie wrote:
> On Freitag, 29. Juni 2007 Michael Monnerie wrote:
> > I have most entries split over several lines:
> >
> > Jun 29 19:56:40 db.xxx.xxx postgres[10640]: [5-1] DB=XXX U=XXX
> > H=1.1.1.1 16854186.2190 idleLOG:  Verbindungsende: Sitzungszeit:
> > 0:01:22.10 Jun 29 19:56:40 db.xxx.xxx postgres[10640]: [5-2] 
> > Benutzer=xxx Datenbank=xxxx Host=1.1.1.1 port=23640
> >
> > Is it possible to tell postgres to split entries only after 200
> > chars, not already at about 80? 200 should fit most log lines into
> > one entry.

Postgres does not split entries.  They are split by infelicities in the
underlying facilities used (pipes).  There's ongoing work to fix this
problem.  In the meantime, I think you could work around it by using
syslog instead of redirect_stderr.

-- 
Alvaro Herrera                               http://www.PlanetPostgreSQL.org/
"La primera ley de las demostraciones en vivo es: no trate de usar el sistema.
Escriba un guión que no toque nada para no causar daños." (Jakob Nielsen)

In response to

Responses

pgsql-admin by date

Next:From: km4hrDate: 2007-07-18 15:09:12
Subject: Re: What user privileges do I need to CREATE FUNCTION's?
Previous:From: km4hrDate: 2007-07-18 14:42:54
Subject: Re: What user privileges do I need to CREATE FUNCTION's?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group