pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergey Arlashin <sergeyarl.maillist@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: PostgreSQL 9.3 logging: separate log messages
Date: Mon, 31 Mar 2014 17:33:06 +0400
Message-ID: <C09AEFAE-14BE-4B18-BCCF-29B5AC15839E@gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi!

What is the proper way to separate queries from other messages while logging?

For example:

I have 'log_min_duration_statement' parameter in postgresql.conf . Therefore I get postgresql system messages and slow queries in one log file /var/log/postgresql/postgresql-9.3-main.log . 

In order to simplify further reading I'd like to get slow queries in /var/log/postgresql/postgresql-slowqueries.log and all the rest in /var/log/postgresql/postgresql.log. 

I tried to implement this by means of rsyslog but didn't manage to get any decent result. 

Any help will be greatly appreciated :)

--
Best regards,
Sergey Arlashin







-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (3+ messages)  latest in thread

Message-ID: <C09AEFAE-14BE-4B18-BCCF-29B5AC15839E@gmail.com>
Permalink:  ../C09AEFAE-14BE-4B18-BCCF-29B5AC15839E@gmail.com/
Also on:    postgresql.org/message-id/C09AEFAE-14BE-4B18-BCCF-29B5AC15839E@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: sergeyarl.maillist@gmail.com
  Subject: Re: PostgreSQL 9.3 logging: separate log messages
  In-Reply-To: <C09AEFAE-14BE-4B18-BCCF-29B5AC15839E@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