Skip to content
0850 554 5439 [email protected]

What do you need help with?

Search the guides and tutorials, or browse the categories.

Visitor statistics and logs in cPanel: Awstats, Bandwidth, Raw Access, Visitors and Errors

Shared Hosting 33 views Step-by-step guide Last verified: Markdown
What you will learnWhich of the five tools in cPanel's Metrics section (Visitors, Awstats, Bandwidth, Raw Access, Errors) to use for which question, how to open and read each one, and how to download logs to your computer.
Time10 minutes

1. What does each tool do?

The web server logs every request to your site. cPanel offers five tools that show these logs in different ways:

  • Visitors: shows the latest 1,000 requests one by one. For the question "what just happened?".
  • Awstats: processes the logs once a day and produces monthly summary reports. For the question "how many visitors this month?".
  • Bandwidth: shows in graphs how much data your web and email traffic transferred.
  • Raw Access: lets you download and archive the raw log file.
  • Errors: shows the web server's latest error entries.
The five tools in the Metrics section and the question each one answers.

All of them are in the Metrics section of the cPanel home page.

All the statistics and log tools are in the Metrics section of the cPanel home page.

2. Before you start

  • Awstats and Bandwidth data is not real-time; the server processes the logs at intervals. If you can't see a visit from today in Awstats, check again the next day.
  • The Visitors screen keeps the latest 1,000 entries; on a busy site that may be only a few minutes of traffic.
  • If your site uses HTTPS, choose the domain's row labelled (SSL) in the lists; HTTPS traffic is kept separately.

3. Using the tools step by step

3.1 Visitors: recent requests

  1. Open Visitors in the Metrics section.
  2. On your domain's row (the (SSL) row for HTTPS), click the view icon.
  3. For each request the table shows IP, URL, Time, Size (bytes), Referring URL and User Agent. Click a column header to sort, and use the Search box to filter for a specific IP or address.
Metrics → Visitors → the icon next to the domain: a table of recent requests. Use the search box to filter for a specific IP or address.

What you can look for:

  • Many requests from the same IP in a short time: an attack or an aggressive bot (see B42, B45).
  • Requests for your images with an unknown site in the Referring URL column: hotlinking (see B47).
  • Very large files in the Size (bytes) column: a cause of slowness (see B49).

3.2 Awstats: the monthly summary

  1. Open Awstats in the Metrics section and click View on your domain's row.
  2. Choose the month in the Reported period list at the top and press OK.
  3. The Summary table shows unique visitors, visits, pages, hits and bandwidth. The Not viewed traffic row is the share of bots and error responses.
  4. Open detailed reports from the menu on the left: Hours, Hosts, Robots/Spiders visitors, Referring sites, Search Keywords and more.
Metrics → Awstats → View: the summary for the selected month. The Not viewed traffic row shows bots and error responses; data is processed once a day.
Info

In Awstats' Turkish interface, some Turkish characters may appear garbled. You can switch to English with the flags at the top right of the report; the numbers are the same.

3.3 Bandwidth: how much data was transferred?

  1. Open Bandwidth in the Metrics section.
  2. The graphs for the last 24 hours, last week and last year show HTTP (web), IMAP, POP3, SMTP (email) and FTP traffic in separate colours.
  3. At the bottom of the page you see this month's total by service and a pie chart.
Metrics → Bandwidth: graphs of web and email traffic for the last 24 hours, week and year, and this month's total by service.

If you see a sudden spike in a graph, look at the requests from the same hours on the Visitors screen.

3.4 Raw Access: download and archive logs

  1. Open Raw Access in the Metrics section.
  2. If you want to keep logs, tick Archive log files to your home directory after the system processes statistics. under Configure Logs. So that archives don't fill your disk space, also tick Remove the previous month's archived logs from your home directory at the end of each month. and save.
  3. In the Download Current Raw Access Logs table, click your domain to download the current log as a .gz file. Archived logs are listed in the Archived Raw Logs section at the bottom of the page.
Metrics → Raw Access: the setting for archiving logs to your home directory, and downloading the current raw access log by clicking the domain name.
Warning

Raw logs contain visitors' IP addresses; this is personal data. Keep the files only as long as necessary and don't share them with third parties.

3.5 Errors: the latest error entries

  1. Open Errors in the Metrics section.
  2. The web server's latest error entries are listed. Each line has the date, the IP that made the request and the error message.
Metrics → Errors: the web server's latest error entries. This is where you look for the cause of 403, 404 and 500 errors.

To interpret error messages, see guides B41 (500 error) and B09 (403 error).

4. How do you check you are reading it right?

  • Open your site from your own connection; within a few minutes you should see your own request at the top of the Visitors table.
  • The next day, check that this month's Summary values in Awstats have increased.
  • The month's total in Bandwidth may differ from the Bandwidth value in Awstats: one also counts email, the other only web traffic.

5. Symptom → cause → fix

Symptom Likely cause Fix
No visits from today in Awstats Data is processed once a day Check the next day; use Visitors for real-time
The Visitors table is empty The non-SSL row was chosen for an HTTPS site Choose the row labelled (SSL)
Awstats visitor count differs from your analytics tool Awstats counts bots from the logs too; analytics tools only count visitors running their script Accept the difference; compare trends
Bandwidth is unexpectedly high Bot traffic, hotlinking or large file downloads Check the Size and Referring URL columns in Visitors (B47, B49)
My disk filled up with raw log archives Archiving is on, month-end removal is off Tick the month-end removal box; download and delete old archives (B43)
The Errors screen is empty but the site shows errors PHP errors are written to the site's own error_log file Check the error_log file in the site's folder (B41)

6. Frequently asked questions

What is the difference between Awstats and a web analytics tool?

Awstats counts from the server's logs; it runs no script in the visitor's browser and also sees bots and blocked requests. Browser-based analytics tools only count visitors who run their script. That is why their numbers differ.

Can I make Awstats public?

Awstats reports require a cPanel session and contain visitors' IP addresses. If you need to share a report, use a screenshot or an export.

How long are logs kept?

The Visitors screen keeps the latest 1,000 entries, and Awstats keeps monthly summaries. To keep raw logs for a long time, you need to turn on archiving in Raw Access; archives use your disk space.

What is my bandwidth limit?

It depends on your plan. You can see your current usage and limit in the Bandwidth row of the Statistics panel on the cPanel home page.

How do I find out what a specific IP did on my site?

Type the IP address into the Search box on the Visitors screen. For older entries, download the log from Raw Access and search it with a text editor on your computer.

Did you know?

To monitor your site's availability continuously from the outside, without looking at server logs, you can use Gyro Uptime Monitoring; it notifies you when the site stops responding (see I01).

  • B41 — My site won't load: 500 Internal Server Error
  • B09 — My site returns 403 Forbidden
  • B42 — 503/508 "Resource Limit Reached": resource limits
  • B45 — Password-protecting a folder and blocking IP addresses
  • B49 — How do I measure my site's speed?
Was this helpful?

Thanks for your feedback!

Still Need Help?

The support team is here around the clock for anything you can't find in the knowledge base.