Unix Technical Forum

Admin pack's "logfile" doesn't work

This is a discussion on Admin pack's "logfile" doesn't work within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> Hi, I have PgAdmin 1.6.2 talking to a PostgreSQL 8.2.3 server with the distributed admin pack installed (from source's ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 07:49 PM
Andy Shellam
 
Posts: n/a
Default Admin pack's "logfile" doesn't work

Hi,

I have PgAdmin 1.6.2 talking to a PostgreSQL 8.2.3 server with the
distributed admin pack installed (from source's contrib/adminpack), and
have ran the adminpack.sql script against the postgres database. If, in
PgAdmin, I click Tools > Server Status and select the "logfile" tab, I
get the following error:

"redirect_stderr not enabled or log_filename misconfigured."

My PostgreSQL server is configured as follows:

silent_mode --- on
log_destination --- stderr
log_directory --- /var/log/pgsql
log_filename --- postgresql.%Y%m%d.log
log_rotation_age --- 1d
redirect_stderr --- on

I've tried it with silent_mode set to "off" and stopped/started
PostgreSQL, but it still doesn't work.

Is there anything else I need to check/change to get PgAdmin reading the
log file? Obviously the log is readable/writeable to the postgresql
user account, and is around 400KB per day.

Thanks,

Andy.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 07:49 PM
Dave Page
 
Posts: n/a
Default Re: Admin pack's "logfile" doesn't work

Andy Shellam (Mailing Lists) wrote:
> Hi,
>
> I have PgAdmin 1.6.2 talking to a PostgreSQL 8.2.3 server with the
> distributed admin pack installed (from source's contrib/adminpack), and
> have ran the adminpack.sql script against the postgres database. If, in
> PgAdmin, I click Tools > Server Status and select the "logfile" tab, I
> get the following error:
>
> "redirect_stderr not enabled or log_filename misconfigured."
>
> My PostgreSQL server is configured as follows:
>
> silent_mode --- on
> log_destination --- stderr
> log_directory --- /var/log/pgsql
> log_filename --- postgresql.%Y%m%d.log
> log_rotation_age --- 1d
> redirect_stderr --- on
>
> I've tried it with silent_mode set to "off" and stopped/started
> PostgreSQL, but it still doesn't work.
>
> Is there anything else I need to check/change to get PgAdmin reading the
> log file? Obviously the log is readable/writeable to the postgresql
> user account, and is around 400KB per day.


It's a bit stupid about the filename format - try the default of:

postgresql-%Y-%m-%d_%H%M%S.log

and it should work.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com