Skip to content

Commit 5a8f146

Browse files
authored
Merge pull request #77 from ylecuyer/fix-mail-log-default-yle
Fix: Default for mail log path
2 parents 35f158a + d99e38e commit 5a8f146

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.3 / 2021-05-02
2+
3+
* [BUGFIX] Fix default for mail log path (/var/log/mail.log)
4+
15
## 0.1.2 / 2018-05-04
26

37
* [ENHANCEMENT] Build tag for systemd

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ These options can be used when starting the `postfix_exporter`
1616
| `--web.listen-address` | Address to listen on for web interface and telemetry | `9154` |
1717
| `--web.telemetry-path` | Path under which to expose metrics | `/metrics` |
1818
| `--postfix.showq_path` | Path at which Postfix places its showq socket | `/var/spool/postfix/public/showq` |
19-
| `--postfix.logfile_path` | Path where Postfix writes log entries | `/var/log/maillog` |
19+
| `--postfix.logfile_path` | Path where Postfix writes log entries | `/var/log/mail.log` |
2020
| `--log.unsupported` | Log all unsupported lines | `false` |
2121
| `--docker.enable` | Read from the Docker logs instead of a file | `false` |
2222
| `--docker.container.id` | The container to read Docker logs from | `postfix` |

logsource_file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type fileLogSourceFactory struct {
6666
}
6767

6868
func (f *fileLogSourceFactory) Init(app *kingpin.Application) {
69-
app.Flag("postfix.logfile_path", "Path where Postfix writes log entries.").Default("/var/log/maillog").StringVar(&f.path)
69+
app.Flag("postfix.logfile_path", "Path where Postfix writes log entries.").Default("/var/log/mail.log").StringVar(&f.path)
7070
}
7171

7272
func (f *fileLogSourceFactory) New(ctx context.Context) (LogSourceCloser, error) {

0 commit comments

Comments
 (0)