How to redirect sql_exporter log to required file #637
-
Is it possible to redirect the sql_exporter log to the required file (for example: /var/lib/postgresql/sqlexplog/sql_exporter.log)? Currently, the sql_exporter log is written to the system log /var/log/syslog. sql_exporter, version 0.16.0 (branch: HEAD, revision: a1726ff) No LSB modules are available. PostgreSQL 16.3 (Ubuntu 16.3-1.pgdg22.04+1) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ignalexeyp, I've recently switched to another logging library ( The feature is already available on So at the moment there are three options:
|
Beta Was this translation helpful? Give feedback.
Hi @ignalexeyp, I've recently switched to another logging library (
log/slog
), and it's possible now to define the log filepath to write to (by default it's stdout).The feature is already available on
master
, but wasn't released yet as a part ofv0.17
.So at the moment there are three options: