From ec57499cf9fe1c003bdef4510da28d5e560aca99 Mon Sep 17 00:00:00 2001 From: Yoann Lecuyer Date: Sun, 2 May 2021 23:01:50 +0200 Subject: [PATCH 1/2] Fix: Default for mail log path --- README.md | 2 +- logsource_file.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1be73b8..931ad0b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ These options can be used when starting the `postfix_exporter` | `--web.listen-address` | Address to listen on for web interface and telemetry | `9154` | | `--web.telemetry-path` | Path under which to expose metrics | `/metrics` | | `--postfix.showq_path` | Path at which Postfix places its showq socket | `/var/spool/postfix/public/showq` | -| `--postfix.logfile_path` | Path where Postfix writes log entries | `/var/log/maillog` | +| `--postfix.logfile_path` | Path where Postfix writes log entries | `/var/log/mail.log` | | `--log.unsupported` | Log all unsupported lines | `false` | | `--docker.enable` | Read from the Docker logs instead of a file | `false` | | `--docker.container.id` | The container to read Docker logs from | `postfix` | diff --git a/logsource_file.go b/logsource_file.go index b906a84..ef1c8e1 100644 --- a/logsource_file.go +++ b/logsource_file.go @@ -66,7 +66,7 @@ type fileLogSourceFactory struct { } func (f *fileLogSourceFactory) Init(app *kingpin.Application) { - app.Flag("postfix.logfile_path", "Path where Postfix writes log entries.").Default("/var/log/maillog").StringVar(&f.path) + app.Flag("postfix.logfile_path", "Path where Postfix writes log entries.").Default("/var/log/mail.log").StringVar(&f.path) } func (f *fileLogSourceFactory) New(ctx context.Context) (LogSourceCloser, error) { From d99e38e0ae5f94d0ac0ade44cfd0320c0081959a Mon Sep 17 00:00:00 2001 From: Yoann Lecuyer Date: Sun, 2 May 2021 23:04:26 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae38dde..cad552e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.3 / 2021-05-02 + +* [BUGFIX] Fix default for mail log path (/var/log/mail.log) + ## 0.1.2 / 2018-05-04 * [ENHANCEMENT] Build tag for systemd