You are not logged in.

#1 2007-01-16 08:45:31

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Huge log files...

Maybe not Arch related .... but check out one of me log files

-rw-r--r--  1 root   root  358M 2007-01-16 08:48 slim.log

dude thats some serious disk usage

maybe I need a cron job to clear/trim log files from time to time

I could install a distro in that small lol......


Mr Green

Offline

#2 2007-01-16 09:38:35

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: Huge log files...

There is logrotate. Just add a the slim log to the configuration files of it. Of course, the slim-package maintainer should take care of that. wink Thanks for pointing that out. *goes and checks his slim.log*


Todays mistakes are tomorrows catastrophes.

Offline

#3 2007-01-16 13:55:12

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Huge log files...

Would never have looked, only all this talk about .pacsave ~ files got me thinking ...

kernel, everything, messages

yeah thanks for the heads up ;-)


Mr Green

Offline

#4 2007-01-16 14:09:43

baze
Member
Registered: 2005-10-30
Posts: 393

Re: Huge log files...

this is an issue that has been around for quite some versions of slim now. usually i had a logfile of about 200mb size, even when i deleted it and it was created new. some weeks ago it suddenly grew up to 900mb cluttering my whole /var partition so i switched to gdm. i don't like gdm that much but it's stll way better than slim with its large logfiles...

Offline

#5 2007-01-16 14:54:48

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Huge log files...

I pity the foo who doesn't use logrotate.d files!


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#6 2007-01-16 15:10:39

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Huge log files...

Well me not as clever as some....


Mr Green

Offline

#7 2007-01-16 15:15:00

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Huge log files...

/etc/logrotate.d/slim

/var/log/slim.log {
    compress
    dateext
    weekly
    rotate 4
    size=+1024k
    notifempty
    missingok
    copytruncate
    olddir /var/log/old
}
man logrotate

Because you're worth it!


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#8 2007-01-16 15:26:38

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Huge log files...

rofl I was looking honest ...  lol .... well you learn something everyday ...

seems a bit long winded to me ... setting up each log file rotation cron job has confused me ... setting a certain day date time why can I not run logrotate when I want? ... system is not running 24/7 so...

to hell with it reinstall Arch.....

not to mention everything.log

thanks ;-)


Mr Green

Offline

#9 2007-01-16 20:51:00

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: Huge log files...

Try fcron from community...replaces dcron nicely for computers that don't run all the time; it will run missed jobs upon boot so logrotate, updatedb, etc. still work.

Offline

#10 2007-01-16 21:42:49

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Huge log files...

cool thanks I will check it out....


Mr Green

Offline

#11 2007-05-01 08:28:49

Cancel
Member
From: Canada
Registered: 2006-08-13
Posts: 15

Re: Huge log files...

Try fcron from community...replaces dcron nicely for computers that don't run all the time; it will run missed jobs upon boot so logrotate, updatedb, etc. still work.

I really like slim and want to keep it, but not the huge log! I checked out fcron, but I don't get how to set it up. I followed FUBAR's advise:

/etc/logrotate.d/slim
Code:

/var/log/slim.log {
    compress
    dateext
    weekly
    rotate 4
    size=+1024k
    notifempty
    missingok
    copytruncate
    olddir /var/log/old
}

How do I set up fcron to run to minimize the log size?

Offline

#12 2007-09-07 21:18:32

Leiaz
Member
Registered: 2007-09-06
Posts: 7

Re: Huge log files...

mucknert wrote:

There is logrotate. Just add a the slim log to the configuration files of it. Of course, the slim-package maintainer should take care of that. wink Thanks for pointing that out. *goes and checks his slim.log*

This is not done yet. I was surprised to find a 7GB slim log filling half of my partition big_smile

Offline

#13 2007-09-14 14:57:11

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Huge log files...

Offline

#14 2012-04-20 16:09:10

1LordAnubis
Member
Registered: 2008-10-10
Posts: 253
Website

Re: Huge log files...

Sorry to revive this thread, but my slim.log was just 21.27 gb, and slim.log.1 was 1.95 gb...
Noticed my / partition had run out of space, did a quick search, and assumed it was my /proc/kcore, which is reported as 128 Tb (apparently 0 real disc space) on a 39 gb partition, but further searching took me to the enormous slim.log. I mounted a blu ray .iso, and the next day I noticed my slim.log had filled the entire partition with crap like "libbluray/hdmv/hdmv_vm.c:324: _resume_from_play_pl(): object not playing playlist !"

So yes, 23.22 Gb slim log files in 1 day


Any society that would give up a little liberty to gain a little security will deserve neither and lose both.
-Benjamin Franklin
The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.
-George Bernard Shaw

Offline

#15 2012-04-23 06:21:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: Huge log files...

Moderator note:  This is an ancient thread.  Normally, I would ask that you start a new thread and link back to this one --  but I really don't want another Slim thread to be spawned.   I'll leave this thread be in that things have not changed in 4 1/2 years. 

I might say, however, I looks as if something else may be broken.  i assume your system is now set to rotate Slim logs in accordance with the bug report linked to be ezzetabi.  If so, I'd be taking a look at hdmv_vm.c.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB