Downloading your site's raw access logs through cPanel will provide you with a plain text file which you can then review for information about your website visitors. This can also be helpful if you are working with someone who needs to see your website statistics, but you do not wish to give that person access to your cPanel account.

How are raw access logs saved?

By default your raw access logs are regenerated approximately every 24 hours. Without archiving, you will only see the logs for the past cycle (approximately 24 hours).

If you want archives of each cycle saved, you will need to first configure this in cPanel.

How to archive logs:

  1. Begin by logging into your cPanel account.
  2. Click on the Raw Access Logs icon in the Logs section of your cPanel home page.

    cpanel-raw-access-logs

  3. In the Raw Access Logs page, check the box next to Archive logs in your home directory at the end of each stats run.
  4. Optional: You can also select the box for Remove the previous month's archived logs from your home directory at the end of each month to have those deleted automatically for you.

    cpanel-raw-access-logs-configuration

This will update the archived log each cycle so that you can download the archive when you're ready. If you opted to remove the previous month's logs in the configuration above, be sure to download the archive before the end of the month.

Downloading your raw access logs from cPanel

To download your raw access logs, you have a couple of options. You can download your current raw access logs or an archive of the logs from within the Raw Access Logs page in cPanel. You can also download the archive files through either the cPanel File Manager or an FTP program.

Downloding from the Raw Access Logs page:

Below the Configure Logs section, you will see sections for Download Current Raw Access Logs and Archived

  1. Raw Logs. Click on the domain you want the logs for (in either area) to download a compressed log file to your local computer.

    cpanel-raw-access-logs-download

Downloading Archives with cPanel File Manager or FTP:

  1. Using either the cPanel File Manager or a stand alone FTP program, navigate to the logs folder inside of your home directory.
  2. Download the file for each domain you want the access logs for.

    cpanel-raw-access-logs-download-file-mgr

    cpanel-raw-access-logs-download-ftp

Opening and Viewing cPanel Raw Access Logs

Once you have downloaded the file to your local computer, to view the logs, you will need a program that can extract files from the Gnu Zipped Archive (.gz extension). For a list of compatible utilities by operating system, please see:

Program(s) that open .GZ files

Once you have extracted the logs, you can then use any plain text editor (e.g. NotePage, Text Edit, etc.) to open the log and view the information. You can also import the file into your preferred web statistics program.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Help Center:
Email Address
Optional, but our team may contact you for more information.
Did you find this article helpful?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

Update to SSL Certificates - Certificate Warnings
1969-12-31 11:00 am EST
Hits: 678

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.