Merge pull request #77 from ylecuyer/fix-mail-log-default-yle

Fix: Default for mail log path
This commit is contained in:
Bart Vercoulen 2021-08-17 10:00:04 +02:00 committed by GitHub
commit 5a8f14691e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -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 ## 0.1.2 / 2018-05-04
* [ENHANCEMENT] Build tag for systemd * [ENHANCEMENT] Build tag for systemd

View File

@ -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.listen-address` | Address to listen on for web interface and telemetry | `9154` |
| `--web.telemetry-path` | Path under which to expose metrics | `/metrics` | | `--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.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` | | `--log.unsupported` | Log all unsupported lines | `false` |
| `--docker.enable` | Read from the Docker logs instead of a file | `false` | | `--docker.enable` | Read from the Docker logs instead of a file | `false` |
| `--docker.container.id` | The container to read Docker logs from | `postfix` | | `--docker.container.id` | The container to read Docker logs from | `postfix` |

View File

@ -66,7 +66,7 @@ type fileLogSourceFactory struct {
} }
func (f *fileLogSourceFactory) Init(app *kingpin.Application) { 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) { func (f *fileLogSourceFactory) New(ctx context.Context) (LogSourceCloser, error) {