Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/var/log. Why is it important?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
cylix
n00b
n00b


Joined: 15 Feb 2004
Posts: 4
Location: Nebraska, USA

PostPosted: Mon Jul 18, 2005 6:57 pm    Post subject: /var/log. Why is it important? Reply with quote

I'm :oops: embaraced to say I have been using Linux as my full time OS since 1997 and I still don't see or understand that there is much importance in /var/log stuff. The only time I look at it is when I'm having a problem and since I'm a single user its not I'm not as worried about security as I should be. My question is what are the logs in /var/log good for? This question comes because I was thinking of mounting it as tmpfs so it would be cleared out every boot. I found that the directory had some files in it that were over 100meg namely acpid and wlog so I wanted to clear it out every shutdown with the (possibly) mistaken Idea I don't need them. Any help in understanding the usefulness of the logging other than debugging is very wellcome.

Thanks
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Mon Jul 18, 2005 7:52 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Other Things Gentoo.
Back to top
View user's profile Send private message
Nil_Spaar
Apprentice
Apprentice


Joined: 10 Jul 2004
Posts: 179
Location: Berlin, Germany

PostPosted: Mon Jul 18, 2005 9:54 pm    Post subject: Reply with quote

The stuff in /var/log is only for you. If you don't look at your logs you could as well delete them without your system taking any damage (afaik). But there are also programms that do usefull things with the log files. Afaik the regenworld script for example uses /var/log/emerge.log to regenerate your world file. Genlop can use that log to estimated the time for future emerges.
Therefore wiping the logs on every reboot might be a little extrem. If you ever come to a situation where you need to know what happened to your system a week ago you will regret it (Just like backups: you miss them only when it's already too late ;)
If you simply want to cut down on disk usage you might want to take a look at logrotate.
Back to top
View user's profile Send private message
crudh
l33t
l33t


Joined: 12 May 2005
Posts: 696
Location: Sundbyberg, Sweden

PostPosted: Tue Jul 19, 2005 9:34 am    Post subject: Reply with quote

And if there are some logs you whish to keep and some you don't, then configure the applications not to log or symlink the logs to /dev/null
Back to top
View user's profile Send private message
cylix
n00b
n00b


Joined: 15 Feb 2004
Posts: 4
Location: Nebraska, USA

PostPosted: Wed Jul 20, 2005 1:04 am    Post subject: Reply with quote

Danke and tack själv mycket for the replies. I'm looking into logrotate and hadn't thought of /dev/null so Thanks for your help. :o
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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