Current File : //usr/local/apps/dovecot/share/man/man1/doveadm-log.1 |
.\" 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.
.\"------------------------------------------------------------------------
.SH OPTIONS
Global
.BR doveadm (1)
.IR options :
.TP
.B \-D
Enables verbosity and debug messages.
.TP
.BI \-o\ setting = value
Overrides the configuration
.I setting
from
.I /usr/local/apps/dovecot/etc/dovecot/dovecot.conf
and from the userdb with the given
.IR value .
In order to override multiple settings, the
.B \-o
option may be specified multiple times.
.TP
.B \-v
Enables verbosity, including progress counter.
.\"------------------------------------------------------------------------
.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 /usr/local/apps/dovecot/etc/dovecot/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
.\"------------------------------------------------------------------------
.SH REPORTING BUGS
Report bugs, including
.I doveconf \-n
output, to the Dovecot Mailing List <dovecot@dovecot.org>.
Information about reporting bugs is available at:
http://dovecot.org/bugreport.html
.\"------------------------------------------------------------------------
.SH SEE ALSO
.BR doveadm (1)