Logs

Discussion in 'Server Operation' started by dayjahone, Feb 14, 2010.

  1. dayjahone

    dayjahone Member

    The logs on my server are getting to the point that they're taking up a lot of space. Is there a simple way to delete all of the logs? The reason for this post is that I don't want to delete something I shouldn't.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What logs? For what service?
     
  3. dayjahone

    dayjahone Member

    Mail is the one that's taking up a lot of space, but I'd like to do delete all of them. Do I need to leave logs on there for some reason?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    No, you can delete old, unused logs.
     
  5. dayjahone

    dayjahone Member

    So, I can I delete the entire folder /var/log?
     
  6. falko

    falko Super Moderator ISPConfig Developer

    No, don't delete that folder - just old, unused log files inside that folder.
     
  7. dayjahone

    dayjahone Member

    How do I know what's old and not being used? If I delete everything in it, won't it just recreate the files?
     
  8. falko

    falko Super Moderator ISPConfig Developer

    Not necessarily - some services might fail to start if the log file is missing.
    Old files usually have extensions like .1.gz, .2.gz, and so on.
     
  9. dayjahone

    dayjahone Member

    So I can delete anything with .log.#.gz in var/log without causing any mayhem?
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Yes, that's right.
     

Share This Page