Log Files and Log Rotation

All connections to the web server and requests for files that were not found on the server are registered in log files. These log files are analyzed by the statistical utilities running on the server, which then present graphical reports on demand. You may want to download these log files to your computer for processing by third-party statistical utilities, or view their contents for web server debugging purposes.

Log files are located in %plesk_dir%\admin\logs directory (where %plesk_dir% is the system variable defining the folder where Plesk is installed). Log messages from Plesk and from PHP are stored in the %plesk_dir%\admin\logs\php_error.log file.

If you deal with large volumes of data, log files can grow too rapidly. In this case you can enable automatic cleanup and recycling of log files. This can be done on a per-subscription basis.

To adjust recycling of log files:

  1. In Customer Panel, go to the Websites & Domains tab > Logs > Log Rotation and click Switch On.

    If you see the Switch Off button, this means that log recycling is already switched on.

  2. Specify the recycling period for the log files and how many instances of each log file to store on the server. Also, specify whether they should be compressed and sent to an email address after processing.
  3. Click OK.

Additionally, you may want to keep track of actions performed by various users in the system. All actions will be recorded in a log file that you will be able to download for viewing.

You can configure logging of actions and download the log file in Server Administration Panel > Tools & Settings > Action Log.

 

Leave your feedback on this topic here

If you have questions or need support, please visit the Plesk forum or contact your hosting provider.
The comments below are for feedback on the documentation only. No timely answers or help will be provided.