Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Primero felicitaciones, y gracias, ubuntu 12.04, es, impresionante, e impecable. Ahora tengo esta pregunta, los archivos /var/log/kern.log y syslog crecen demasiado, mas de lo que he visto habitualmente, ¿que puede ser?. Y estaría bien si los pongo a rotar después de que pesen 256 mb, o bien no pesen mucho. Si es así, con el programa logrotate, ¿como se hace para que roten según el tamaño?. Bueno espero que me puedan explicar , y yo uso ubuntu 12.04 desktop 32 bit. Y gracias


Google Translate

First congratulations, and thanks, ubuntu 12.04, is impeccable. Now I have this question, the /var/log/kern.log and syslog grow too much, but from what I've seen usually, what could it be?. And it would be nice if I put them to rotate after weighing 256 mb, or do not weigh much. If so, the logrotate program can do that?, how is made to rotate by size?. Well I hope I can explain, and I use ubuntu 12.04 desktop 32 bit.

Many thanks

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

You should look at the log files (tail -f /var/log/kern.log) to see what's filling them up so quickly. Something may be throwing errors and that causes them to grow. If you do, please update your question with your findings, maybe someone else can help determine what the problem is.

Also, there's no need to rotate them manually, they get rotated on a periodic basis (every day, with the 7 prior days kept in a compressed format, anything older gets deleted, except for /var/log/messages which rotates weekly with 4 prior weeks kept), look at /etc/logrotate.d/rsyslog for the configuration.

I agree that if your log files are growing boundlessly the best thing to do is find what's causing it, because it's not normal. As a parameter my kern.log is under 20 MB and it has information for the past 3 days (hasn't been rotated because the rotation task hasn't run).

share|improve this answer
    
Bien, si gracias. Hice esto :tail -f /var/log/kern.log –  Rodrigo May 3 '12 at 0:26
    
c:~$ tail -f /var/log/kern.log May 2 21:22:33 pc kernel: [ 2915.260921] [drm:intel_prepare_page_flip] ERROR Prepared flip multiple times Etc,etc,etc... Lanza eso, y sabes que con cada clic de mouse la lista se disparaba, con mas de eso. Muy amable. Gracias. –  Rodrigo May 3 '12 at 0:33
    
Amigos lo solucioné !, instalando busybox-syslogd , que desinstala klogd y syslogd, que previamente había instalado. En vez de rsyslog rsyslog-gnutls rsyslog-gssapi rsyslog-mysql rsyslog-relp para probar, Así está mi ( kernlog y sys.log ) 4bit, durante mucho rato. busybox-syslogd. De nuevo, grcias. Saludos –  Rodrigo May 3 '12 at 9:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.