View user and admin activity in cPanel

"You can view cPanel access, admin activity, logins and errors for users and resellers on your cPanel server in the following logs:

<code>/usr/local/cpanel/logs/access_log</code> – All activity on cPanel, WHM, and Webmail interfaces

<code>/usr/local/cpanel/logs/login_log</code> – Logins to cPanel, WHM and Webmail

<code>/usr/local/cpanel/logs/error_log</code> – Errors that occur in cPanel

<code>/var/cpanel/accounting.log</code> – Records of cPanel account actions, such as creation, deletion, and suspension

Please note, root access is required to view these log files.

Example SSH/ Terminal commands

List recent actions (eg remove/deletion) in WHM

tail /var/cpanel/accounting.log

Perform a wildcard search for lines containing the pattern "example" with any characters before and after it, you can use the .* wildcard characters:

grep &quot;.<em>example.</em>&quot; /usr/local/cpanel/logs/access_log

"

Need help with this?

Open a ticket and link to this guide so our team can see what you have tried.

View support tickets

Power your business with Ecenica Hosting

Built for WordPress and serious websites. Fast, secure and supported by real people in the UK.

Ecenica hosting services represented by a connected red route across London