Results 1 to 8 of 8

Thread: user and admin activity log

  1. #1
    Member ReiJu's Avatar
    Join Date
    Mar 2008
    Posts
    57

    Question user and admin activity log

    Where can I find user and admin activity log? That is, when a user or admin (root) log to whether cpanel or whm and doing things like removing or modifying file.
    --no sign of signature--

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,476
    cPanel/WHM Access Level

    Root Administrator

    Default /usr/local/cpanel/logs

    All activity in the cPanel, WHM, and Webmail interfaces is logged to /usr/local/cpanel/logs/access_log. Logins to cPanel, WHM and Webmail are logged to /usr/local/cpanel/logs/login_log. Errors that occur in cPanel are logged to /usr/local/cpanel/logs/error_log.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation - Find cPanel hosting


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Member ReiJu's Avatar
    Join Date
    Mar 2008
    Posts
    57

    Default

    Quote Originally Posted by cPanelJared View Post
    All activity in the cPanel, WHM, and Webmail interfaces is logged to /usr/local/cpanel/logs/access_log. Logins to cPanel, WHM and Webmail are logged to /usr/local/cpanel/logs/login_log. Errors that occur in cPanel are logged to /usr/local/cpanel/logs/error_log.
    Sorry for a very very late comment.

    But all I can see in /usr/local/cpanel/logs/access_log is GET request to some files/dirs. I can't find any log saying "deleting here" or "change setting there to what" or anything like that. Is there any chance that I wrongly configured cpanel log bahaviour?

    I even found entries like this:

    Code:
    10.18.11.10 proxy $USERNAME [10/01/2010:03:35:44 -0000] "GET /cPanel_magic_revision ...
    Why didn't it log the actual public IP instead of private IP?
    --no sign of signature--

  4. #4
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,476
    cPanel/WHM Access Level

    Root Administrator

    Default

    The cPanel access log logs the exact function that is called, the URL that is used to activate the function. The function names do not always correspond exactly to what you see in the WebHost Manager or cPanel. For example, terminating an account will call "killacct." It is an Apache-style log, logging exactly the URL that was called by the browser, and the result of the request.

    The public IP address that made the request should be logged. In your case, is 10.18.11.10 the server's private IP address, or is it another system on the network?
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation - Find cPanel hosting


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  5. #5
    Member ReiJu's Avatar
    Join Date
    Mar 2008
    Posts
    57

    Default

    Quote Originally Posted by cPanelJared View Post
    The cPanel access log logs the exact function that is called, the URL that is used to activate the function. The function names do not always correspond exactly to what you see in the WebHost Manager or cPanel. For example, terminating an account will call "killacct." It is an Apache-style log, logging exactly the URL that was called by the browser, and the result of the request.
    Hmm, that make sense. So, what keyword/function I should grep to find who deleted a file/directory?

    The public IP address that made the request should be logged. In your case, is 10.18.11.10 the server's private IP address, or is it another system on the network?
    Nope, the server only has one IP, the public IP.
    --no sign of signature--

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default

    When using file manager, I'm not seeing any indication of the file deletion other than these lines on my own machine when I tested deleting a file:

    Code:
    208.74.121.102 - admin [10/14/2010:20:15:22 -0000] 
    "POST /frontend/x3/filemanager/live_fileop.xml HTTP/1.1" 200 0 
    "https://mydomain.com:2083/frontend/x3/filemanager/index.html?
    dirselect=webroot&domainselect=mydomain.com&dir=
    %2Fhome%2Fadmin%2Fpublic_html" "Mozilla/5.0 (Macintosh; U; 
    Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10"
    
    208.74.121.102 - admin [10/14/2010:20:15:22 -0000] "GET 
    /frontend/x3/filemanager/listfiles.json?types=dir&dir=
    %2fhome%2fadmin%2fpublic_html HTTP/1.1" 200 0 
    "https://mydomain.com:2083/frontend/x3/filemanager/index.html?
    dirselect=webroot&domainselect=mydomain.com&dir=
    %2Fhome%2Fadmin%2Fpublic_html" "Mozilla/5.0 (Macintosh; 
    U; Intel Mac OS X 10.6; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10"
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Member ReiJu's Avatar
    Join Date
    Mar 2008
    Posts
    57

    Default

    Then, I guess, there is no hope in finding information when a specific file was deleted. The log you excerpted doesn't tell me anything about what file was deleted. The case is I need to know who was deleted my files, public_html directory, if you need to know.

    Is there any chance, maybe in the future, that there will be a better cpanel admin activity log?
    --no sign of signature--

  8. #8
    Member ReiJu's Avatar
    Join Date
    Mar 2008
    Posts
    57

    Default Re: user and admin activity log

    Any comment?
    --no sign of signature--

Similar Threads

  1. question about users activity log within cpanels
    By LAZer in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 07-19-2011, 10:54 AM
  2. How to log SSH activity
    By maever in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-28-2009, 09:23 AM
  3. WHM activity / SSH activity
    By ozmo in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 07-21-2008, 08:44 AM
  4. User activity in cPanel - are there any logs?
    By netlook in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-31-2006, 08:01 AM
  5. Log for Frontpage activity?
    By WebmastTroy in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-13-2003, 10:46 PM

Tags for this Thread