Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    24

    Default how to log any root configuration in whm

    Hi

    I am sorry if i am asking something that have already been discussed. I have search in this forum as much as i could.

    I have a whm license and i share whm root interface with 2 friends.

    My question is: Can i see a log with anything they do in whm? So if one of them connect to whm and change configuration for let's say easyapache or dns or resources of an account, can i see some logs or monitor or something that i see every move they done in whm as root?

    Thank you very much.

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    The only logs for such activities are stored in

    /usr/local/cpanel/logs/access_log
    and they are not much user friendly to trace out the activities you are looking for.

  3. #3
    Member
    Join Date
    Mar 2007
    Posts
    24

    Default

    Thank you that is a very very good log i mean i stay with tail -f /usr/local/cpanel/logs/access_log , and i press for example in whm "restart service"
    and guess what! it appears in log. It si very cool, every click in whm it seems to appear in that log. It's a lot and a lot of log i need to filter it so it don't show me lines i don't need to see it.

    Thank you very much.

  4. #4
    Member
    Join Date
    Mar 2007
    Posts
    24

    Default

    how can i output to a file this

    tail -f /usr/local/cpanel/logs/access_log |grep -v /json-api

    it doesn't work

    tail -f /usr/local/cpanel/logs/access_log |grep -v /json-api >> file

  5. #5
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    "tail -f" will show you the logs of current process so if "/json-api" is not called/accessed, it won't be available in the logs and cannot be outputted to a file.

    What you can do is to grep the access_log file once in a day and output the required logs in a file.

    cat /usr/local/cpanel/logs/access_log |grep -v "/json-api" >> /path/to/file

Similar Threads & Tags
Similar threads

  1. Fresh CPanel Install - Can't log in to WHM as root
    By epho in forum New User Questions
    Replies: 1
    Last Post: 02-18-2010, 09:22 PM
  2. How to log in to cPanel using WHM root account
    By Simsen in forum New User Questions
    Replies: 7
    Last Post: 04-16-2007, 07:45 AM
  3. Server restarts everytime I log into whm under root.
    By edkhosting in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-24-2005, 03:34 PM
  4. cannot log into the configuration settings
    By eliasche in forum New User Questions
    Replies: 6
    Last Post: 02-06-2005, 01:38 PM
  5. WHM Root log
    By Apoc in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-06-2004, 11:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube