Amaze Hosting Information Centre

A Step-By-Step Guide to Enabling Access Log Archiving In cPanel

Posted on
Log in to cPanel

The guide describes how to enable access log archiving in cPanel.

ABOUT RAW ACCESS LOG

Raw access logs are a way to know who has visited your website and the content they accessed without displaying graphs, charts and graphics.

You can analyse your website raw log files with the help of cPanel access log functionality. As we have mentioned above, the main aim of raw access logs is to get information about all visitors that landed on your website and FTP site. You can configure cPanel to archive this information every month in a compressed file in your home directory.  Or you have an option to configure cPanel to delete the previous month’s archived log files.

Once you download and decompress the archived log file to your computer, you can view it in a text editor later.

Archived access logs are kept in the gzip format. These types of files have a.gz file extension. If your computer runs on Microsoft Windows, you may need to download a program that decompresses .gz files.

Let’s understand the whole process in detail in this step-by-step guide.

STEP1: Log in to cPanel.

Log in to cPanel

 

STEP2: Go to “Raw Access” under the Metrics section.

STEP3: If you want to archive logs at the end of each month, check the box besides “Archive logs in your home directory at the end of each stats run every 24 hours”.

In addition, if you want to keep the archive logs for the current month and delete the archive logs for the previous month, select “Remove the previous month’s archived logs from your home directory at the end of each month” check box.

STEP4: Click on “Save”

Raw Access Save

 

STEP5: Your new settings have been saved, now click on “Go Back”

Raw access saving

 

To view previous access logs

As you’ve configured the access, your old Raw Access logs will be archived on the server. The archived logs can be viewed under Archived Raw Logs section. To access these logs, you need to click on the desired log archive, and it will be downloaded to your computer. Follow these steps to understand the process swiftly.

STEP6: If you click on Domain under the “Download Current Raw Access Logs” section, it will download the most recent raw access log that displays today’s activity.

Download Current Raw Access Logs

 

STEP7: To download the file to your computer, you need to click on an older archive, which can be seen under “Archive Raw Logs” section.

Archive Raw Logs

This way you can view Raw Access Logs from the cPanel interface.

If you follow the guide efficiently, you can enable raw access log archiving for your account. For any further assistance feel free to get in touch with Amaze’s support team and get quick solutions to related problems in logs archiving.

We’d love to hear from you. Get in touch with us today!

Amaze