Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u4v7e-009QAx-7u for pgsql-general@arkaria.postgresql.org; Wed, 16 Apr 2025 05:15:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u4v7c-006dnh-4r for pgsql-general@arkaria.postgresql.org; Wed, 16 Apr 2025 05:15:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u4v7b-006dnZ-P7 for pgsql-general@lists.postgresql.org; Wed, 16 Apr 2025 05:15:40 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u4v7Z-000Kx4-0b for pgsql-general@lists.postgresql.org; Wed, 16 Apr 2025 05:15:40 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-30c2d427194so57493451fa.0 for ; Tue, 15 Apr 2025 22:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744780536; x=1745385336; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=a1sKG+O9UH8SDtWgrfzjcG1oT1ZIdMxIpaNj6L65NoI=; b=Qy3TlRdBKir0SrAHq7h9X8kAynSlZJ8/Cb2JWAJVsjwnMVr0BQoZebxA53MrYYYEMg Cto1JNLTp0nP/kfbZ6kIDQctR7pvWstdCahcFUOeht2pkMvx7APg3AezjlmAMJspr3YW Dd9YsjK431jDcxM+1fshTA4EOqlcZiorJnubbln/aW8oL2lfjw3WcbiKux3We2+NtTpA U/lVGNQAAb1q86ZTax/tz9DPno7oNi+VnSJkKxHsnSJC0GO1G5ZyOfS2gFLUgCYJu8pg hq9NOgy5iqLYrJ8MbZ8FGxS+JMmGXMLcdvT43lI20lBIiIISPzmjlQPNV3oatDKIdCVK F2vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744780536; x=1745385336; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a1sKG+O9UH8SDtWgrfzjcG1oT1ZIdMxIpaNj6L65NoI=; b=w26Dgx0s0nla40x+wcmKBRLZ43PqZ1LPdhYwxx0+htt2+dOu/YbsqPxcdAU5A3qn42 K3XykAr1ias2fxlkVoZ1GYChs+edb6fhLMdnwZXTPTzipaHpALlGd/OE1pEAce6hmyUQ IC66lzJGOYKOeSaKmrPWPaDi+dujERN/QhwnKo7Wes0kCQChGOdP+Uvoly15BZqY8Io0 3HdZs6XDkIHdLEqLjI0CQSmJD3ondF6DRPqZKnJQi+5a4FIidrNQ7JvOj02NX7LXuybu 4lmrFxQLM+11RvzPYFvhzQHO5xjAggxz4jraD5qd1NCNEYMikW7Qigna2XKr697h9zlt xRMw== X-Gm-Message-State: AOJu0YxtqUrYrcM6gd2dC8Dmp+5NuiMDssfXZWushhmMDPnt+ePupzfv 2stvpsN745zHnm4HR0LRes0WEVwHWdQJ6gqKuBiXB2IWEgUfDeuL9EU2FL+/LknmgXv/H2P63pj uMHHKm+YvtoT/+37ox3KGgQSkKzk= X-Gm-Gg: ASbGnctrSSQqMGSf+zOCDl5JLGlqnPB4EKdLKO1kQDQuPXNIwYBUpRQi0vwbPiZ+qVg 147GUWBPXfjGdUh3gv7zQ++Z2Fb9sjg3JdA0CWs/S/56DI4dEFsTaxYCsvLfLsis7zkdxPy8y5p SBUi11/aaX7XFMmqF22qKMeg== X-Google-Smtp-Source: AGHT+IFswBAja/KBCfshPr0Bzz51CrxiJNY/EHQWHSnE/uxtJya3UJ0goDiyiU/zvcTSDoLLj6jxvCG/6PgIeHP2u9Q= X-Received: by 2002:a05:651c:1583:b0:30c:4be7:1d42 with SMTP id 38308e7fff4ca-3107f6bf2c1mr970351fa.12.1744780535973; Tue, 15 Apr 2025 22:15:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: vijay patil Date: Wed, 16 Apr 2025 10:45:24 +0530 X-Gm-Features: ATxdqUGTjI5WQiHCPqdjlKiQ0m21GJMOGb2WXvB-m8mn1hDJKjNB94MiD6Rcf7A Message-ID: Subject: Re: Best Tool for PostgreSQL Auditing and Storing Audit Logs Separately To: =?UTF-8?B?S0VOQU4gw4fEsEZUw4fEsA==?= Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000000eccd50632de60cc" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000000eccd50632de60cc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Kenan, Thanks for the quick response. Thanks Vijay On Tue, Apr 15, 2025 at 4:44=E2=80=AFPM KENAN =C3=87=C4=B0FT=C3=87=C4=B0 wrote: > Hi, > > You can use pgaudit and pgauditlogtofile extension ( > https://github.com/fmbiete/pgauditlogtofile) together to write audit logs > in a separate file. > > yours, > > Kenan =C3=87ift=C3=A7i > > On Tue, Apr 15, 2025 at 1:44=E2=80=AFPM vijay patil > wrote: > >> Hi All, >> >> We are exploring auditing solutions for our PostgreSQL database and are >> considering using pgaudit for this purpose. However, we have a few >> questions: >> >> 1. >> >> *What is the best tool for auditing PostgreSQL databases?* >> - >> >> We are specifically looking for a solution that offers detailed >> auditing capabilities and is compatible with our setup. >> 2. >> >> *Can we store the audit information separately from PostgreSQL logs >> if we decide to use pgaudit?* >> - >> >> We would prefer to keep the audit logs in a separate file or >> location for easier management and analysis. >> >> >> We appreciate any help or suggestions! >> >> >> Thanks >> >> Vijay >> > --0000000000000eccd50632de60cc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Kenan,

Thanks= for the quick response.=C2=A0

Thanks<= /div>
Vijay

<= div dir=3D"ltr" class=3D"gmail_attr">On Tue, Apr 15, 2025 at 4:44=E2=80=AFP= M KENAN =C3=87=C4=B0FT=C3=87=C4=B0 <kciftci89@gmail.com> wrote:
Hi,

You can use p= gaudit and pgauditlogtofile extension (https://github.com/fmbiete/pgauditlog= tofile) together=C2=A0to write audit logs in a separate=C2=A0file.=C2= =A0

yours,

Kenan =C3=87if= t=C3=A7i

On Tue, Apr 15, 2025 at 1:44=E2=80=AFPM vijay patil <vijay.postgres@g= mail.com> wrote:

Hi All,

We are exploring= auditing solutions for our PostgreSQL database and are considering using <= code>pgaudit for this purpose. However, we have a few questions:

  1. What is the best tool for auditing PostgreSQL databases?

    • We are specifically looking for a solution that offers detailed auditing= capabilities and is compatible with our setup.

  2. Can we store the audit information separately from PostgreSQL lo= gs if we decide to use pgaudit?

    • We would prefer to keep the audit logs in a separate file or location fo= r easier management and analysis.


We appreciate any help or suggestions!


Thanks

Vij= ay

--0000000000000eccd50632de60cc--