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
Leave a Reply