Default logs rotation (ISPmanager)

From ISPWiki

(Redirected from Logs rotation (ISPmanager))
Jump to: navigation, search

To effectively manage your web server, you need to get feedback about the activity and performance of the server and any problems that may be occurring. However, the amount of information that is stored in the log files is very large. Log files in use are uncompressed plain text that may consume a large amount of disk space. A log file grows without bound unless action is taken and this can cause many problems. For example, larger files are harder to manipulate, your file system may run out of space or the information you log may constitute personal data.

A solution to log file growth is log rotation. You need to periodically rotate the log files by moving or deleting the existing logs. Log file rotation aims to prevent log files from growing indefinitely. Log files can be rotated daily or weekly. This involves moving of an existing log file to some other file name and starting fresh with an empty log file. After a period the old log files are removed.

The logs are located in the logs directory of the user's home directory. They are as follows:

  • domain_name.access.log - file contains information about all requests from the network and web-server responses.
  • domain_name.error.log - file contains information about web-server errors.

Use a WWW domain name as a "domain_name" value.

You may configure default settings for the system. Select "Log rotation" on the navigation bar and fill out the form:

Module «Log rotation»
  • Access log - select whether you want to enable web-server's access log and rotate it.
  • Error log - select whether you want to enable error log and rotate it. The error log file contains the error reports and warnings from the web server.
  • Rotation period - select a period to run log rotation job.
  • Store archives - provide the number of log file archives to be stored on the server. Disk space occupied by the archives is included into the user quota.
  • Analyse with - select a program to be used for web-server logs analysis.
  • Analysis period - provide the period for logs analysis.
  • Change for all WWW domains - check the box to apply the settings to all the WWW domains.

See also Logs rotation.

More information on how to configure deafult settings for a particular WWW domain can be found in the WWW domains module.

Was this helpful? Yes | No
Personal tools