pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedSyslog line wrapping
4+ messages / 4 participants
[nested] [flat]
* Syslog line wrapping
@ 2010-09-24 03:55 Evan Rempel <erempel@uvic.ca>
2010-09-24 04:21 ` Re: Syslog line wrapping Tom Lane <tgl@sss.pgh.pa.us>
2010-09-24 08:13 ` Re: Syslog line wrapping Vladimir Rusinov <vladimir@greenmice.info>
2010-09-24 11:01 ` Re: Syslog line wrapping Peter Eisentraut <peter_e@gmx.net>
0 siblings, 3 replies; 4+ messages in thread
From: Evan Rempel @ 2010-09-24 03:55 UTC (permalink / raw)
To: pgsql-admin
I am running Postgresql 8.3 and would like to get postgres to
NOT wrap the syslog lines. Is ther any configuration to do this.
Perhaps I can wrap them at a very large line number?
The problem is that we want a program to analyze the logs for us, and with the line breaks it
is very difficult, although not impossible, to get a program to do this.
Evan Rempel.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Syslog line wrapping
2010-09-24 03:55 Syslog line wrapping Evan Rempel <erempel@uvic.ca>
@ 2010-09-24 04:21 ` Tom Lane <tgl@sss.pgh.pa.us>
2 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2010-09-24 04:21 UTC (permalink / raw)
To: Evan Rempel <erempel@uvic.ca>; +Cc: pgsql-admin
Evan Rempel <erempel@uvic.ca> writes:
> I am running Postgresql 8.3 and would like to get postgres to
> NOT wrap the syslog lines. Is ther any configuration to do this.
> Perhaps I can wrap them at a very large line number?
The problem we're up against is explained in src/backend/utils/error/elog.c:
* Our problem here is that many syslog implementations don't handle long
* messages in an acceptable manner. While this function doesn't help that
* fact, it does work around by splitting up messages into smaller pieces.
If you are fortunate enough to have a less-broken-than-average syslog
facility, you could increase the PG_SYSLOG_LIMIT constant defined there.
On the whole, though, I'd suggest not depending on syslog. It has
other issues besides this one, like sometimes losing messages entirely.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Syslog line wrapping
2010-09-24 03:55 Syslog line wrapping Evan Rempel <erempel@uvic.ca>
@ 2010-09-24 08:13 ` Vladimir Rusinov <vladimir@greenmice.info>
2 siblings, 0 replies; 4+ messages in thread
From: Vladimir Rusinov @ 2010-09-24 08:13 UTC (permalink / raw)
To: Evan Rempel <erempel@uvic.ca>; +Cc: pgsql-admin
On Fri, Sep 24, 2010 at 7:55 AM, Evan Rempel <erempel@uvic.ca> wrote:
> I am running Postgresql 8.3 and would like to get postgres to
> NOT wrap the syslog lines. Is ther any configuration to do this.
> Perhaps I can wrap them at a very large line number?
>
> The problem is that we want a program to analyze the logs for us, and with
> the line breaks it
> is very difficult, although not impossible, to get a program to do this.
>
pgFounie handles multi-line logs easilty. You might want to check it's
source to get how.
Or just use stderr logging (which is actually more stable).
--
Vladimir Rusinov
http://greenmice.info/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Syslog line wrapping
2010-09-24 03:55 Syslog line wrapping Evan Rempel <erempel@uvic.ca>
@ 2010-09-24 11:01 ` Peter Eisentraut <peter_e@gmx.net>
2 siblings, 0 replies; 4+ messages in thread
From: Peter Eisentraut @ 2010-09-24 11:01 UTC (permalink / raw)
To: Evan Rempel <erempel@uvic.ca>; +Cc: pgsql-admin
On tor, 2010-09-23 at 20:55 -0700, Evan Rempel wrote:
> I am running Postgresql 8.3 and would like to get postgres to
> NOT wrap the syslog lines. Is ther any configuration to do this.
> Perhaps I can wrap them at a very large line number?
PostgreSQL 8.4 increased the line length.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-09-24 11:01 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-09-24 03:55 Syslog line wrapping Evan Rempel <erempel@uvic.ca>
2010-09-24 04:21 ` Tom Lane <tgl@sss.pgh.pa.us>
2010-09-24 08:13 ` Vladimir Rusinov <vladimir@greenmice.info>
2010-09-24 11:01 ` Peter Eisentraut <peter_e@gmx.net>
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