logerrors
Function for collecting statistics about messages in logfile
logerrors : Function for collecting statistics about messages in logfile
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 7140 | logerrors | logerrors | 2.1.5 |
SEC | BSD-3-Clause | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-r | No | Yes | Yes | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | pg_stat_log pgelog pg_sqlog log_fdw pgaudit pgdisablelogerror pg_auth_mon pgfr_record |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 2.1.5 |
18 17 16 15 14 | logerrors |
- |
| RPM | PGDG | 2.1.5 |
18 17 16 15 14 | logerrors_$v |
- |
| DEB | PIGSTY | 2.1.5 |
18 17 16 15 14 | postgresql-$v-logerrors |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 |
| el8.aarch64 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 |
| el9.x86_64 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 |
| el9.aarch64 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 |
| el10.x86_64 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 |
| el10.aarch64 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 | PGDG 2.1.5 |
| d12.x86_64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| d12.aarch64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| d13.x86_64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| d13.aarch64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| u22.x86_64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| u22.aarch64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| u24.x86_64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| u24.aarch64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| u26.x86_64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
| u26.aarch64 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 | PIGSTY 2.1.5 |
Source
github.com/munakoiso/logerrors
logerrors-2.1.5.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
logerrors collects statistics about WARNING, ERROR, and FATAL messages in PostgreSQL log files, making it easy to monitor error rates without parsing logs.
Configuration Parameters
| Parameter | Default | Description |
|---|---|---|
logerrors.interval |
5000 (5s) |
Time between writing stats to buffer (ms, max 60s) |
logerrors.intervals_count |
120 |
Number of intervals to keep in buffer (max 360) |
logerrors.excluded_errcodes |
(empty) | Error codes to exclude, comma-separated |