summary Domain log browser assists you in troubleshooting issues with your websites by parsing the web server logs and displaying relevant warnings and error messages in the Plesk interface. In this topic, you will learn how to view the contents of log files for any given domain in Plesk. You will also learn how to add custom log files to the list of logs monitored by Plesk.
## Overview On Linux, the information from the following log files is displayed by default: - *Apache access (access_log)*. This log records all HTTP requests processed by the Apache web server. - *Apache ssl access (access_ssl_log)*. This log records all HTTPS requests processed by the Apache web server. - *Apache error (error_log)*. This log contains diagnostic information. It also records any errors that the Apache web server encounters in processing requests. - *nginx access (proxy_access_log).* This log records all HTTP requests processed by the nginx proxy web server. - *nginx ssl access (proxy_access_ssl_log)*. This log records all HTTPS requests processed by the nginx proxy web server. - *nginx error (proxy_error_log)*. This log contains diagnostic information. It also records any errors that the nginx proxy web server encounters in processing requests. On Windows, the information from the IIS log is displayed. This log records all requests processed by the web server, both HTTP and HTTPS, as well as any errors that the web server encounters in processing requests. In addition, you can add any custom log file from your web site directory to track it in the domain log browser, as described below.
## Access Domain Log Browser To access the domain log browser, go to **Websites and Domains**, find the domain whose logs you want to see, and then click **Logs** (under “Dev Tools”).
image logs button
You will be presented with a list of messages gathered from the logs. By default, the domain log browser displays messages present in the monitored logs at the moment of opening. If you want to refresh the list with messages added after opening the domain log browser, click **Refresh**. Alternatively, if you want to have new messages continuously added to the list, click **Start real-time updates**.
image log browser interface
To select the logs from which you want to view messages, click this button
image logs selector menu
and then select the desired logs from the menu.
image selected log sources
## Manage Log Files To view all the messages in a log, go to **Websites and Domains**, find the domain whose logs you want to see, click **Logs**, and then click **Manage Log Files**. The list of all tracked log files will be displayed.
image tracked log files
Here you can click a log file name to view the file content directly in the domain log browser. You can click the image view log icon icon next to a log file to open it for viewing in a separate window, or the image download log icon icon to download it. To save disk space, you can enable log rotation - that is, automatic compression and/or deletion of outdated website log files. To set up log rotation, go to **Websites and Domains**, find the domain whose logs you want to rotate, click **Logs**, and then click **Log Rotation**. You can delete log files that have been rotated (log files that have not yet been rotated cannot be removed).
## Add a Custom Log File You can add any custom log file from your web site directory to track its changes in the domain log browser. To do this, go to **Websites and Domains**, find the domain you want to add a custom log for, click **Logs**, click **Manage Log Files**, and then click **Add Custom Log**. The tree with your web site folders will be displayed. Select the file that you want to add to the domain log browser and click **OK**.
Note Only plain text files can be selected. In order to be properly displayed, your custom log file should have timestamps for each log entry, otherwise it will not be parsed correctly.
image add custom log
As a result, the selected log file will be displayed in the list of managed log files.
image added custom log
If you no longer want to monitor this custom log file, click the image remove custom log icon next to it. This does not remove the file from your file system, but simply removes the file from the list of files available in the domain log browser. You can also open a text file in the domain log browser directly from the File Manager, using the **Open in Log Browser** option.
image open in log browser
When you open a log file from the File Manager in the domain log browser, it is not yet added to the list of logs viewed in the domain log browser on a permanent basis. To add the file to the domain log browser, click the **Add to Log Browser as Custom file** button.
image add as custom file
Note Log rotation is not available for custom log files.