Log Rotation Settings

The idea of log rotation is as follows. Active log files can be handled daily, weekly, monthly, or when some log file grows too large (the maximal size can be restricted). Before being handled, the active log file is removed from logging and a new one is created. Plesk starts logging to the new log file, while the dropped-out log file is handled, compressed, and emailed to some address (if this action is specified). The handled log files are stored on the server. The number of such stored files is limited. Once the limit is exceeded, the oldest file is removed from the server and a new handled log file is added.

Log rotation settings are specified in the log-rotation node defined by complex type LogRotationType (domain_template.xsd). It is structured as follows:

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.