1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
.\" Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file
.TH DOVEADM\-LOG 1 "2013-11-24" "Dovecot v2.3" "Dovecot"
.SH NAME
doveadm\-log \- Locate, test or reopen Dovecot\(aqs log files
.\"------------------------------------------------------------------------
.SH SYNOPSIS
.BR doveadm " [" \-Dv "] " "log errors" " [" \-s
.IR min_timestamp ]
.\"-------------------------------------
.br
.BR doveadm " [" \-Dv "] " "log find"
.RI [ directory ]
.\"-------------------------------------
.br
.BR doveadm " [" \-Dv "] " "log reopen"
.\"-------------------------------------
.br
.BR doveadm " [" \-Dv "] " "log test"
.\"------------------------------------------------------------------------
.SH DESCRIPTION
The
.B doveadm log
.I commands
are used to locate and reopen the log files of
.BR dovecot (1).
It\(aqs also possible to test the configured targets of the
.I *log_path
settings.
.\"------------------------------------------------------------------------
@INCLUDE:global-options@
.\"------------------------------------------------------------------------
.SH COMMANDS
.SS log errors
.BR "doveadm log errors" " [" \-s
.IR min_timestamp ]
.PP
The
.B log errors
command is used to show the last \- up to 1,000 \- errors and warnings.
If no output is generated, no errors have occurred since the last start.
.PP
.TP
.BI \-s \ min_timestamp
An integer value, representing seconds since the epoch \- also known as
Unix timestamp.
When a min_timestamp was given,
.BR doveadm (1)
will only show errors occurred since that point in time.
.\"-------------------------------------
.SS log find
.B doveadm log find
.RI [ directory ]
.PP
The
.B log find
command is used to show the location of the log files, to which
.BR dovecot (1)
sends its log messages.
If
.BR dovecot (1)
logs its messages through
.BR syslogd (8)
and
.BR doveadm (1)
could not find any log files, you can specify the
.I directory
where your syslogd writes its log files.
.\"-------------------------------------
.SS log reopen
.B doveadm log reopen
.PP
This command causes
.B doveadm
to send a SIGUSR1 signal to master process, which causes it to
reopen all log files configured in the
.IR log_path ,
.I info_log_path
and
.I debug_log_path
settings.
These settings are configured in
.IR @pkgsysconfdir@/conf.d/10\-logging.conf .
.br
The master process also signals the log process to do the same.
This is mainly useful after manually rotating the log files.
.\"-------------------------------------
.SS log test
.B doveadm log test
.PP
This command causes
.B doveadm
to write the message \(dqThis is Dovecot\(aqs
.I priority
log
.RI ( timestamp )\(dq
to the configured log files.
The used priorities are:
.BR debug ,
.BR info ,
.BR warning ,
.BR error
and
.BR fatal .
.\"------------------------------------------------------------------------
.SH EXAMPLE
This example shows how to locate the log files used by
.BR dovecot (1).
.sp
.nf
.B doveadm log find
Looking for log files from /var/log
Debug: /var/log/dovecot.debug
Info: /var/log/mail.log
Warning: /var/log/mail.log
Error: /var/log/mail.log
Fatal: /var/log/mail.log
.fi
.\"------------------------------------------------------------------------
@INCLUDE:reporting-bugs@
.\"------------------------------------------------------------------------
.SH SEE ALSO
.BR doveadm (1)
|