The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

File deletion Logs File

Discussion in 'General Discussion' started by lldeepakll, Sep 4, 2012.

  1. lldeepakll

    lldeepakll Well-Known Member

    Joined:
    May 20, 2012
    Messages:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    I want to know the location of log files for below tasks..

    Logs file for the files that are created and deleted in cpanel.
    Email account creation and deletion logs file. (And how can find when the particular email account was created and deleted)

    I know the logs file (/var/log/messages)for the files created and deleted using ftp.

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. lldeepakll

    lldeepakll Well-Known Member

    Joined:
    May 20, 2012
    Messages:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    HI, Thanks for your reply.
    I have checked and it is showing (/usr/local/cpanel/logs/access_log) only file uploaded (through cpanel)logs . Can you please guide me how do I find the logs for the file that has been created or deleted using cpanel file manager option (Create file and Delete).
    Also where let me now how can I search for email account creation/deletion logs
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The cPanel access log found at /usr/local/cpanel/logs/access_log does log email account creation and deletion. You can search the log for the following terms:

    Code:
    addpop
    delpop
    As far as uploads through File Manager, the access log will not allow you to determine the name of the file that was created or deleted. However, you can search for the "filemanager" term to determine when a user accesses file manager.

    Thank you.
     
  5. lldeepakll

    lldeepakll Well-Known Member

    Joined:
    May 20, 2012
    Messages:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Thanks Michael for this information.
     
  6. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Related question... I noticed that in addition to access_log, there is access_log.1.gz, and it's only 1 day older than access_log, but no others. Can someone point me to the place where I can tell cPanel to keep larger logs and archive them weekly, for say a month?
     
  7. pwhjenny

    pwhjenny Well-Known Member

    Joined:
    Aug 31, 2012
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you are archiving, then you'll have archived cPanel logs in /usr/local/cpanel/logs/archives location.
     
Loading...

Share This Page