Knowledge Base

How to configure and download raw access logs in cPanel

This article describes how to configure and download your web site's raw access log files in cPanel.

About raw access logs

Using cPanel's raw access log functionality, you can configure and download your web site's raw log files for your own analysis. Raw access logs contain information about all visitors to your web site and FTP site. You can configure cPanel to archive this information every month in a compressed file in your home directory. You can also optionally configure cPanel to delete the previous month's archived log files. After you have downloaded and decompressed the archived log file to your computer, you can view it in any text editor.

Archived access logs are stored in the gzip file format. These types of files have a .gz file extension. If your computer runs Microsoft Windows, you may need to download a program that can decompress .gz files. For more information about working with Linux-based compressed files, please see this article.

Configuring raw access logs

To configure raw access logs in cPanel, follow these steps:

  1. In the Logs section of the cPanel home screen, click Raw Access Logs.
  2. If you want to archive logs at the end of each month, select the Archive logs in your home directory at the end of each month check box.
  3. If you want to delete the archived logs for the previous month, select the Remove the previous month's archived logs from your home directory at the end of each month check box.
  4. Click Save.

Downloading raw access logs

To download the raw access logs from cPanel, follow these steps:

  1. In the Logs section of the cPanel home screen, click Raw Access Logs
  2. Click the filename of the file that you want to download.