pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: S.Bob <sbob@quadratum-braccas.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: pgbadger question
Date: Wed, 26 Feb 2020 21:26:12 +0100
Message-ID: <CAOBaU_Yc609C1MfApjXYP37UHzkW9N1efL2PgiSY6nPAZX+=dQ@mail.gmail.com> (raw)
In-Reply-To: <2c0a721c-977f-6233-5eed-c77bd0d3fbdb@quadratum-braccas.com>
References: <2c0a721c-977f-6233-5eed-c77bd0d3fbdb@quadratum-braccas.com>

Hi,

On Wed, Feb 26, 2020 at 9:17 PM S.Bob <sbob@quadratum-braccas.com> wrote:
>
> We have a client that logs all statements with :
>
> log_statement = 'all'
>
> However they also have left log_min_duration_statement disabled:
>
> log_min_duration_statement = -1
>
>
> When I attempt to parse a report with pgbadger like this:
>
> pgbadger -o postgres-Mon.html ./postgres-Mon.log
>
>
> It parses zero queries, even though the query data is there, just that
> it was logged via log_statement = 'all' instead of via setting
> log_min_duration_statement = x
>
>
> Is there any way  to force pgbadger to pick up / reckognize the logges
> queries?

According to https://github.com/darold/pgbadger/, it's not possible:

"Do not enable log_statement as its log format will not be parsed by pgBadger.".





view thread (4+ messages)  latest in thread

Message-ID: <CAOBaU_Yc609C1MfApjXYP37UHzkW9N1efL2PgiSY6nPAZX+=dQ@mail.gmail.com>
Permalink:  ../CAOBaU_Yc609C1MfApjXYP37UHzkW9N1efL2PgiSY6nPAZX+=dQ@mail.gmail.com/
Also on:    postgresql.org/message-id/CAOBaU_Yc609C1MfApjXYP37UHzkW9N1efL2PgiSY6nPAZX+=dQ@mail.gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rjuju123@gmail.com, sbob@quadratum-braccas.com
  Subject: Re: pgbadger question
  In-Reply-To: <CAOBaU_Yc609C1MfApjXYP37UHzkW9N1efL2PgiSY6nPAZX+=dQ@mail.gmail.com>
  References: <2c0a721c-977f-6233-5eed-c77bd0d3fbdb@quadratum-braccas.com> <CAOBaU_Yc609C1MfApjXYP37UHzkW9N1efL2PgiSY6nPAZX+=dQ@mail.gmail.com>

* 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