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.

error_log command line question

Discussion in 'General Discussion' started by xman888, Jul 7, 2013.

  1. xman888

    xman888 Well-Known Member

    Joined:
    Nov 23, 2005
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Is there a command that I can run from the command line for my vps, that will list all of the error_log files on the vps, with how much space each one takes up?

    Kind regards,
    Anthony
     
  2. xman888

    xman888 Well-Known Member

    Joined:
    Nov 23, 2005
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    I found a way to find all client error_logs over 10MB:

    find /home -type f -size +10000k -name "error_log"
     
  3. PlotHost

    PlotHost Well-Known Member

    Joined:
    Apr 29, 2011
    Messages:
    253
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    US
    cPanel Access Level:
    Root Administrator
    Twitter:
    Indeed "find" command does the job.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,665
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. xman888

    xman888 Well-Known Member

    Joined:
    Nov 23, 2005
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    thanks guys :)
     
Loading...

Share This Page