View FTP uploads with archived raw logs

In this article I’m going to discuss how you can view the FTP uploads of your various FTP users with the archived raw logs in cPanel. If you have root access to a VPS or dedicated server, you can access logs showing all FTP activity across your accounts. If you are on a shared server, or do not have root access, this guide will explain the process of being able to access your FTP logs per cPanel account.

What are FTP uploads?

The logs we’ll be accessing in this guide show the files that have been uploaded by the various FTP users on your account. If all of the sudden you’re having an issue with a webpage or a script on your website, you can review the FTP logs to see which one of your users might have updated the file, and at what time.

Accessing the FTP logs

Prior to being able to access your FTP logs, you must first enable raw access log archiving in cPanel for the particular cPanel account you’d like to view FTP logs for. The logs need to process as well, so if you’re looking for FTP uploads for today, more than likely you’d need to wait till tomorrow.

After that’s been done, you’d just follow one of these methods to access your FTP logs:

View FTP logs directly on server

  1. Login to your cPanel
  2. click on file manager home directory go

    Under the Files section, click on File Manager.

  3. click on logs

    From the left-hand directory listing, click on logs.

  4. right click archived log click extract

    Right-click on the archived FTP log you’d like to look at, then click on Extract.

  5. click on extract files

    In the next pop-up, leave /logs selected as the extraction directory, then click Extract File(s). A Extraction Results pop-up should display, click on Close on that.

  6. right click archived log click view

    Right-click on the resulting extracted FTP log file, then select View.

    You can see an example of this.
    viewing ftp logs

View logs locally on your computer

  1. click on raw access logs

    Under the METRICS section, click on Raw Access.

  2. click on ftp archived raw log

    Under the Archived Raw Logs section, click on the archived FTP log for the month you’re interested in.

  3. Then you’d need to use a program like 7-Zip that can extract .gz archives to view the log file itself.

You should now know how to access your cPanel account’s FTP logs, to see what your FTP users have been uploading to your account.

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

2 thoughts on “View FTP uploads with archived raw logs

  1. I created a FTP account for a remote web devolper to help fix a plugin on my site. Is there any way to findout what that specific FTP account changed via the logs? I downloaded the logs and it looks to me like raw data for all visitors of the site. Any way to track down one spacific user? Thanks! 

    1. Tyler, on a cPanel server the default location for storing FTP logs is at /var/log/messages, and will not be accessible from your cPanel interface directly. I recommend either checking this log via SSH, or contacting your web hosting provider for more direct assistance with accessing this log file in relation to your account.

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+