Re: The logs kept piling up, so...



Chanchao a écrit :
I noticed all the crap piling up in /var/log and /var/cache pretty much
uncontrolled, so I did a ' sudo rm -r /var/log/* ' but it turns out a
lot of packages don't like this at all and are unable to recreate their
own logs! I fixed it for apache2, but mysql I'll probably have to
reinstall as it keeps giving me errors when starting mysqld, even though
I did recreate a 'mysql' folder in /var/log

Is there a better way to stop logs from piling up and suffocating
everything?

man syslog.conf

Try adding something more suitable for your needs. Though I can't
recommand discarding every logs because you will dream to find some clue
in them when something goes wrong.

Depite that. A cron job perform log archiving and rotation each night so
it won't fill your /var/log forever.

If you have another host. You can as well transfer logs to a remote syslog.

--
Léa Gris - http://www.noiraude.net/
() Campagne du ruban texte brut contre les courriels en HTML,
/\ contre les pièces jointes dans un format propriétaire.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: The logs kept piling up, so...
    ... lot of packages don't like this at all and are unable to recreate their ... but mysql I'll probably have to ... I did recreate a 'mysql' folder in /var/log ... Is there a better way to stop logs from piling up and suffocating ...
    (Ubuntu)
  • The logs kept piling up, so...
    ... I fixed it for apache2, but mysql I'll probably have to ... I did recreate a 'mysql' folder in /var/log ... Is there a better way to stop logs from piling up and suffocating ...
    (Ubuntu)
  • Re: The logs kept piling up, so...
    ... lot of packages don't like this at all and are unable to recreate their ... but mysql I'll probably have to ... I did recreate a 'mysql' folder in /var/log ... Is there a better way to stop logs from piling up and suffocating ...
    (Ubuntu)
  • Web-site management + ethics
    ... I have recently started studying PHP and MySQL and I have been ... The logic is that everytime the user logs in from a new IP_ADDRESS ... My reasoning for saving the number of visits from an IP ...
    (comp.lang.php)
  • Re: Web-site management + ethics
    ... I have recently started studying PHP and MySQL and I have been ... The logic is that everytime the user logs in from a new IP_ADDRESS ... My reasoning for saving the number of visits from an IP ...
    (comp.lang.php)