dreamz Veteran Posted November 17, 2009 Veteran Share Posted November 17, 2009 i noticed earlier that my log files were huge. kern.log and syslog were around 1.6gb and daemon.log and messages were quite large as well. why do these grow so quickly? how can i prevent them from getting so large? can i disable logging of certain processes? can i automatically delete the logs after they reach a certain size? thanks. Link to comment https://www.neowin.net/forum/topic/846338-log-files-growing-out-of-control/ Share on other sites More sharing options...
Evolution Posted November 17, 2009 Share Posted November 17, 2009 Well first read the logs to see if there is a problem. The logs should cycle every once in a while, compressing the old ones and creating new ones. Link to comment https://www.neowin.net/forum/topic/846338-log-files-growing-out-of-control/#findComment-591857066 Share on other sites More sharing options...
dreamz Veteran Posted November 17, 2009 Author Veteran Share Posted November 17, 2009 here's part of kern.log. everything looks fine to me. where are the old logs sent? are they deleted? can i force ubuntu to delete logs more frequently? Nov_16_20_10_01_ubuntu_kernel_imklog_.doc Link to comment https://www.neowin.net/forum/topic/846338-log-files-growing-out-of-control/#findComment-591857100 Share on other sites More sharing options...
Evolution Posted November 17, 2009 Share Posted November 17, 2009 How did you view that log file? All the log files should be located in /var/log ... at least for Gentoo. Link to comment https://www.neowin.net/forum/topic/846338-log-files-growing-out-of-control/#findComment-591857172 Share on other sites More sharing options...
dreamz Veteran Posted November 17, 2009 Author Veteran Share Posted November 17, 2009 i just opened it up in kwrite (although now i'll just use nano). i've been reading about logrotate.conf. i guess i'll just edit that and add the size command. Link to comment https://www.neowin.net/forum/topic/846338-log-files-growing-out-of-control/#findComment-591857186 Share on other sites More sharing options...
dreamz Veteran Posted November 23, 2009 Author Veteran Share Posted November 23, 2009 i'm not sure if logrotate is running automatically or not. the files don't seem to be rotating (i've had to force it). is it possible to configure when logrotate runs? could i make it run on shutdown, for example? Link to comment https://www.neowin.net/forum/topic/846338-log-files-growing-out-of-control/#findComment-591883418 Share on other sites More sharing options...
Recommended Posts