https://github.com/dalibo/pgsql_logwatch
Monitor PostgreSQL logfile using Logwatch
https://github.com/dalibo/pgsql_logwatch
Last synced: 9 months ago
JSON representation
Monitor PostgreSQL logfile using Logwatch
- Host: GitHub
- URL: https://github.com/dalibo/pgsql_logwatch
- Owner: dalibo
- License: other
- Created: 2011-12-13T08:23:43.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T16:31:20.000Z (over 11 years ago)
- Last Synced: 2025-01-16T05:29:28.995Z (over 1 year ago)
- Language: ApacheConf
- Homepage:
- Size: 97.7 KB
- Stars: 6
- Watchers: 28
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
NOTE: as of [Apr 17 2012][1] this has been merged into Logwatch and
is available in Logwatch since release 7.4.2.
Logwatch configuration files and script for PostgreSQL
Configuration and script for PostgreSQL is missing in the default Logwatch
distribution; here are the files:
logfiles_postgresql.conf
place this file as /etc/logwatch/conf/logfiles/postgresql.conf
and adapt the path to the PostgreSQL logfile.
services_postgresql.conf
place this file as /etc/logwatch/conf/services/postgresql.conf
scripts_postgresql
place this file as /etc/logwatch/scripts/services/postgresql
and make it executable.
Prerequisite: if you are using stderr as PostgreSQL log_destination, you must at
least set log_line_prefix = '%t ' in the postgresql.conf file.
You can test the logwatch output by using the following command:
/usr/sbin/logwatch --detail Med --service postgresql --range Today
pgsql_logwatch is (C) 2011 by Dalibo - http://www.dalibo.com/ written by
Gilles Darold. The code was heavily based on the mysql script by Jeremias Reith
[1]: http://sourceforge.net/projects/logwatch/