In this article we'll discuss the ability to archive your raw access logs so that you can investigate the requests happening on your website at a later date. By default statistics update every 24-36 hours on the server, and when they are run all of your requests for that time period are compiled into a statistics report that you can view with either Awstats, Logaholic, or Webalizer.

However if you needed to go back and see exact requests that had happened, these are wiped out each time statistics reporting is run. So the only thing you're left with is the compiled statistics reports that you can view from cPanel. In most cases this is fine, but if you did need to see the exact requests for a particular day you can set your account up to archive your raw access logs. This way that data is retained just in case you did need to go back and do a manual investigation at some point.

If you have root access to a VPS or dedicated server, you can also enable raw access log archiving for all cPanel accounts at once.

 
  1. Login to your cPanel.
  2. raw-access-logs-iconUnder the Logs section, click on Raw Access Logs.
  3. raw-access-logs-click-on-archivePlace a checkmark beside Archive logs in your home directory at the end of each stats run.

    Only place a checkmark beside Remove the previous month's archived logs from your home directory at the end of each month, if you would only like to archive the current month's logs and not keep previous month's logs.

    Click on Save.
  4. raw-access-logs-click-on-go-backWith your new settings saved, now click on Go Back.
  5. raw-access-logs-download-current-logUnder the Download Current Raw Access Logs section, if you click on your domain, this will download the most recent raw access log, typically showing just todays activity.
  6. raw-access-logs-download-archived-logUnder the Archived Raw Logs section you can click on older archived logs to download them to your computer.

You should now know how to enable raw access log archiving for your account. Your can read our accessing the raw access logs in cPanel article for a bit more information on what to do once you've downloaded a raw access log.

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 this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

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!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!