.\" 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 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
This is for example 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)