Cpanel find recently logged in users

To Find a list of Cpanel user logins, run

cat /usr/local/cpanel/logs/session_log | grep NEW | grep 'cpaneld' | awk '{print $1" "$6" "$8}' | tr -d '['

To see the log for a particular user, run

cat /usr/local/cpanel/logs/session_log | grep CPANEL_USER | grep NEW | grep 'cpaneld' | awk '{print $1" "$6" "$8}' | tr -d '['

In the above command, replace CPANEL_USER with the actual Cpanel username.

Back to log

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *