Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cpanel logins log file

Discussion in 'General Discussion' started by MaRiOsGR66, Oct 27, 2014.

  1. MaRiOsGR66

    MaRiOsGR66 Well-Known Member

    Joined:
    Feb 18, 2011
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    66
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a customer claiming that some one logged in in his cpanel account and deleted all the email accounts.
    Is there some kind of log file for all succesfull logins for his username to cpanel ?
     
  2. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    68
    on server are two related files:
    cat /usr/local/cpanel/logs/login_log
    cat /usr/local/cpanel/logs/access_log

    i think login_log is better for this:

    last 100 entries:
    cat /usr/local/cpanel/logs/login_log | grep hisusername | tail -n100

    add all user entries to a file
    cat /usr/local/cpanel/logs/login_log | grep hisusername > user_loginlog
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Yes, the cPanel access log and login log are likely the best log files to check in order to verify if this happened:

    /usr/local/cpanel/logs/access_log
    /usr/local/cpanel/logs/login_log

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. MaRiOsGR66

    MaRiOsGR66 Well-Known Member

    Joined:
    Feb 18, 2011
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    66
    cPanel Access Level:
    Root Administrator
    Thank you both for the replies!!!

    Is there any kind of log or function inside cpanel to show what actions were done by the client?
    for example on date
    -30/10/2014 username example created an email
    -29/10/2014 username example deleted a mysql database
    etc etc, is there something like that ?
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    There are no such features within cPanel or WHM. You would have to review the log files through the command line. You are welcome to submit a feature request for that type of functionality:

    Submit A Feature Request

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice