logerrors
Function for collecting statistics about messages in logfile
Repository
munakoiso/logerrors
https://github.com/munakoiso/logerrors
Source
logerrors-2.1.5.tar.gz
logerrors-2.1.5.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
logerrors | 2.1.5 | SEC | BSD-3-Clause | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 7140 | logerrors | No | Yes | Yes | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 2.1.5 | 1817161514 | logerrors | - |
| RPM | PGDG | 2.1.5 | 1817161514 | logerrors_$v | - |
| DEB | PIGSTY | 2.1.5 | 1817161514 | postgresql-$v-logerrors | - |
Build
You can build the DEB packages for logerrors using pig build:
Install
You can install logerrors directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Preload:
Create Extension:
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 |
Querying Error Statistics
Slow Log Statistics
Reset Statistics
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)