Jump to content
Froxlor Forum
  • 0

maximal größe von Log angeben?


xep22

Question

moin, hatte gerade folgendes problem: die error.log von einem Kunden war gerade 18GB groß und somit lief mein vserver voll. der Kunde selbst hat nur 50MB speicher, das hat ja aber leider nichts mit der Log zu tun. kann man denn nicht irgendwie einstellen dass die nicht so groß werden kann, damit sowas nicht passiert ?? eine fehlerhafte Schleife kann sowas ja ganz schnell verursachen... 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

hab mal folgende config erstellt, aber er macht nix, die Logs sind teilweise größer als 1MB... in der Doku steht ja, er rotiert sobald größer als 1MB

/var/customers/logs/*.log {
  rotate 3
  missingok
  notifempty
  size 1M
  compress
  delaycompress
  create
  sharedscripts
  postrotate
  /etc/init.d/apache2 reload > /dev/null 2>&1 || true
  endscript
}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...