Re: Systemd vs logging collector - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Systemd vs logging collector
Date
Msg-id 5593F1AD.3050005@aklaver.com
Whole thread Raw
In response to Re: Systemd vs logging collector  (Andomar <andomar@aule.net>)
List pgsql-general
On 07/01/2015 05:26 AM, Andomar wrote:
>> are you just missing this parameter:
>>
>> #log_destination = 'stderr'             # Valid values are
>> combinations of
>>                                          # stderr, csvlog, syslog, and
>> eventlog,
>>                                          # depending on platform.  csvlog
>>                                          # requires logging_collector
>> to be on.
>>
>
> Thanks for your reply, log_destination is set to "stderr".  And
> logging_collector is "on".

And you have the log_directory set up?

>
> On CentOS, this results in regular Postgres log files.  On Arch Linux,
> the results end up in the system journal.  It looks like the Postgres
> logging collector somehow misses out on the stream of messages.

Best guess is the systemd script is catching and redirecting the output
first.

>
> Kind regards,
> Andomar
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Systemd vs logging collector
Next
From: Tom Lane
Date:
Subject: Re: Systemd vs logging collector