LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   a lot of warn file...filling / (https://www.linuxquestions.org/questions/linux-newbie-8/a-lot-of-warn-file-filling-926940/)

kopper27 02-01-2012 09:30 AM

a lot of warn file...filling /
 
hi guys

I have suse 11 sp1 and I have a lot of warn file filling / these are under /var/log


there's this big one
Code:

-rw-r----- 1 root root 3.9G Feb  1 10:28 warn
warn: ASCII text

and the others that are about 2.5 to 3MB - they are about 130 warn-*.bz2

Code:

-rw-r----- 1 root root 3.9G Feb  1 10:28 warn
-rw-r----- 1 root root 2.7M Oct 24 09:45 warn-20111024.bz2
-rw-r----- 1 root root 2.5M Oct 25 09:52 warn-20111025.bz2
-rw-r----- 1 root root 2.6M Oct 26 09:45 warn-20111026.bz2
-rw-r----- 1 root root 2.5M Oct 27 09:50 warn-20111027.bz2
-rw-r----- 1 root root 2.6M Oct 28 10:00 warn-20111028.bz2
-rw-r----- 1 root root 2.5M Oct 29 09:46 warn-20111029.bz2
-rw-r----- 1 root root 2.6M Oct 30 09:43 warn-20111030.bz2

any idea how to get rid of these?
thanks a lot

acid_kewpie 02-01-2012 09:34 AM

did you ever think to look at one to see what's in there??? :confused:

if you do an "lsof /vaw/log/warn" you should see what's writing to it, probably syslog, so you'd want to edit your /etc/syslog.conf (or equivalent) to change its behavior.

More fundamentally though, you probably want to pay attention to the log, as that's what it's there for, and address the root cause instead of masking it.

as for the old compressed ones, you can just delete them.

Cedrik 02-01-2012 09:35 AM

What content is in those files ? Isn't it usefull ?

Maybe check /etc/syslog.conf, and edit it if you see something relevant
(edit: as acid_kewpie says :p)

kopper27 02-01-2012 01:20 PM

I will check guys

thanks


All times are GMT -5. The time now is 03:55 AM.