pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
syslog: log line length?
4+ messages / 2 participants
[nested] [flat]

* syslog: log line length?
@ 2007-06-29 18:05 Michael Monnerie <michael.monnerie@it-management.at>
  2007-07-18 10:56 ` Re: syslog: log line length? Michael Monnerie <michael.monnerie@it-management.at>
  0 siblings, 1 reply; 4+ messages in thread

From: Michael Monnerie @ 2007-06-29 18:05 UTC (permalink / raw)
  To: pgsql-admin

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.

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F 1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID: 1C6FE6B0

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: syslog: log line length?
  2007-06-29 18:05 syslog: log line length? Michael Monnerie <michael.monnerie@it-management.at>
@ 2007-07-18 10:56 ` Michael Monnerie <michael.monnerie@it-management.at>
  2007-07-18 15:05   ` Re: syslog: log line length? Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Michael Monnerie @ 2007-07-18 10:56 UTC (permalink / raw)
  To: pgsql-admin

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.

Is this the wrong question for this list? Where should I post this?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F 1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID: 1C6FE6B0

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: syslog: log line length?
  2007-06-29 18:05 syslog: log line length? Michael Monnerie <michael.monnerie@it-management.at>
  2007-07-18 10:56 ` Re: syslog: log line length? Michael Monnerie <michael.monnerie@it-management.at>
@ 2007-07-18 15:05   ` Alvaro Herrera <alvherre@commandprompt.com>
  2007-07-20 20:07     ` Re: syslog: log line length? Michael Monnerie <michael.monnerie@it-management.at>
  0 siblings, 1 reply; 4+ messages in thread

From: Alvaro Herrera @ 2007-07-18 15:05 UTC (permalink / raw)
  To: Michael Monnerie <michael.monnerie@it-management.at>; +Cc: 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)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: syslog: log line length?
  2007-06-29 18:05 syslog: log line length? Michael Monnerie <michael.monnerie@it-management.at>
  2007-07-18 10:56 ` Re: syslog: log line length? Michael Monnerie <michael.monnerie@it-management.at>
  2007-07-18 15:05   ` Re: syslog: log line length? Alvaro Herrera <alvherre@commandprompt.com>
@ 2007-07-20 20:07     ` Michael Monnerie <michael.monnerie@it-management.at>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Monnerie @ 2007-07-20 20:07 UTC (permalink / raw)
  To: pgsql-admin

On Mittwoch, 18. Juli 2007 Alvaro Herrera wrote:
> 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.

This *is* syslog. Can I specify line length there?

This is one log entry (from a long query) split over 2374 lines:
Jul 20 14:13:55 db1.zmi.at postgres[9596]: [3-1] DB=bayes_db U=bayes_server_33 H=123.132.123.123 42a0a3f9.237c SELECT:LOG:  Dauer: 7420.180 ms  Anweisung: select put_tokens(1,
Jul 20 14:13:55 db1.zmi.at postgres[9596]: [3-2]  '{"\\\\000\\\\003\\\\335\\\\131\\\\354","\\\\000\\\\013\\\\067\\\\227\\\\250","\\\\000\\\\015\\\\012\\\\267\\\\317","\\\\000\\\
[snip]
Jul 20 14:13:56 db1.zmi.at postgres[9596]: [3-2372] \\377\\\\333\\\\246\\\\200\\\\040","\\\\377\\\\334\\\\047\\\\144\\\\105","\\\\377\\\\363\\\\043\\\\077\\\\354","\\\\377\\\\370\\
Jul 20 14:13:56 db1.zmi.at postgres[9596]: [3-2373] \\066\\\\152\\\\106","\\\\377\\\\376\\\\045\\\\100\\\\172"}',
Jul 20 14:13:56 db1.zmi.at postgres[9596]: [3-2374]                                                          0, 1, 1184933549)

And where could I configure to have english, not german, postgres logs?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F 1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID: 1C6FE6B0

Attachments:

  signature.asc (application/pgp-signature, 188B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2007-07-20 20:07 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-29 18:05 syslog: log line length? Michael Monnerie <michael.monnerie@it-management.at>
2007-07-18 10:56 ` Michael Monnerie <michael.monnerie@it-management.at>
2007-07-18 15:05   ` Alvaro Herrera <alvherre@commandprompt.com>
2007-07-20 20:07     ` Michael Monnerie <michael.monnerie@it-management.at>

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