Article ID: 5906, created on Dec 24, 2008, last review on May 9, 2014

  • Applies to:
  • Plesk 8.x for Linux/Unix

Symptoms

I have set rotated logs to be sent to specific mail address.

Domains -> DOMAIN.TLD -> Log files -> Log Rotation -> Send processed log files to e-mail

However, several days passed and I still did not recieve any of them. What is wrong?

Resolution

Only logs that would be removed by logrotate are mailed out. For example, if limit Maximum number of log files is set to '7' in Parallels Plesk Control Panel, then each time logrotate runs and logs are rotated, 8th log (which would be deleted) is sent to specified e-mail address:

access_log.processed
access_log.processed.1.gz
access_log.processed.2.gz
access_log.processed.3.gz
access_log.processed.4.gz
access_log.processed.5.gz
access_log.processed.6.gz  

After logrotate execution file access_log.processed.6.gz  will be removed.
Other files would be shifted, so log access_log.processed.5.gz becomes access_log.processed.6.gz, access_log.processed.4.gz becomes access_log.processed.5.gz etc.

b8ef5052d936e902043e41759118114e a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF