Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stor messages fil... 13 GB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
esse
n00b
n00b


Joined: 08 May 2005
Posts: 5

PostPosted: Tue Sep 20, 2005 4:21 pm    Post subject: Stor messages fil... 13 GB Reply with quote

Hei.

Jeg trenger litt hjelp med log filene mine. De begynner og bli litt vel store. måtte slette messages fila nå, den var på 13 GB....
Men kan noen fortelle meg hvem filer jeg skal sette dette i? Jeg bruker syslog-ng

syslog-ng.conf

Code:

options {
        chain_hostnames(off);
        sync(0);

        # The default action of syslog-ng 1.6.0 is to log a STATS line
        # to the file every 10 minutes.  That's pretty ugly after a while.
        # Change it to every 12 hours so you get a nice daily update of
        # how many messages syslog-ng missed (0).
        stats(43200);
};

source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };

destination messages { file("/var/log/messages"); };

# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); };
# ...if you intend to use /dev/console for programs like xconsole
# you can comment out the destination line above that references /dev/tty12
# and uncomment the line below.
#destination console_all { file("/dev/console"); };

log { source(src); destination(messages); };
log { source(src); destination(console_all); };



Jeg regner med at det er i denne fila. Men kan noen hjelpe meg før jeg blir 'full' igjen.

Espen Bø
espenbo@gmail.com
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Tue Sep 20, 2005 6:40 pm    Post subject: Reply with quote

Jag skulle rekommendera att du installerar logrotate. Använder det inte själv eftersom metalog har det inbyggt, men det är precis vad du är ute efter.
Code:
emerge -av logrotate

_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
esse
n00b
n00b


Joined: 08 May 2005
Posts: 5

PostPosted: Tue Sep 20, 2005 7:07 pm    Post subject: Reply with quote

Takker, det ser ut til og være det jeg var ute etter.

Espen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum