How to download Raw Access logs in cPanel
Raw Access logs record every HTTP request that reaches your site: the visitor’s IP, the requested URL, the response code, the date, and the browser agent, among other data. They’re useful when you want to find out which bots or IPs are causing traffic spikes, which URLs are returning 404 errors, or when you need to share exact data with support.
Before you start
- Confirm you’re logged in to the cPanel account for the domain you want to review.
- Logs are generated automatically; you don’t need to enable anything for them to exist.
- cPanel displays a current log that may contain only a few hours of data; it can also archive earlier logs when that option is enabled.
- Downloaded files come in
.gzformat (compressed with gzip). You’ll need 7-Zip (Windows) or thegunzipcommand (Mac/Linux) to open them.
Download current logs
- Log in to cPanel and, under the Metrics section, open Raw Access.

- In Download Current Raw Access Logs, find the domain whose logs you want to download. If you are reviewing HTTPS traffic, use the row that ends in (SSL).
- Click the domain name to download the current raw log directly as a
.gzfile.

- Save the
.gzfile to your computer.
Note: if your account has multiple domains, each one appears on its own row. Download the one that matches the site you’re reviewing.
Review archived logs
cPanel can save copies of earlier logs. To retain them, under Configure Logs, select Archive log files to your home directory after the system processes statistics and click Save. If the checkbox is already selected, you do not need to change it.
- On the same Raw Access screen, scroll down to Archived Raw Logs.
- If files are saved, a list of available dates appears.
- Click the file name for the date you want to download.

Important: if the archived section is empty, no historical files are available yet. Confirm that the archive option is selected; cPanel will retain logs after the next statistics processing cycle. If you need an earlier period, request those records from support.
Read the downloaded file
The .gz file contains lines of text in Apache Combined Log format. Each line has this structure:
IP - - [date] "METHOD /path HTTP/version" code bytes "referrer" "user-agent"
For example:
203.0.113.15 - - [01/Jun/2026:14:23:05 -0600] "GET /wp-login.php HTTP/1.1" 200 12345 "-" "curl/7.68.0"
To read it:
- Decompress the
.gzfile with 7-Zip, The Unarchiver, or another tool. - Open the resulting
.logfile with a plain text editor (Notepad, TextEdit, VS Code) or a log analysis tool. - Search for a response code (for example,
404for page not found,200for successful requests) or for the IP you want to investigate.
Final verification
Confirm the following before closing your cPanel session:
- The
.gzfile downloaded without errors and is larger than 0 bytes. - When decompressed, the text file opens without error messages.
- The log lines show recent dates matching the period you wanted to review.
- If you were looking for a specific IP or URL, use
Ctrl+Fin your text editor to locate it.
Common errors
- The file is 0 bytes or the link downloads nothing → the domain has received no traffic yet or logs are being rotated → wait a few minutes and try again.
- The
.gzfile won’t open → the download did not complete and the file is truncated → download it again from cPanel. - No archived files appear → the server does not have log archiving enabled → contact support to request logs from past dates.
Recommended reading
Still need help?
If this guide didn’t solve your issue, our team can help you via ticket.