LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2003, 07:30 AM   #1
altor
LQ Newbie
 
Registered: Sep 2003
Location: Rome, Italy
Distribution: Mdk 9.1 (& RH 9)
Posts: 6

Rep: Reputation: 0
Huge log files


My log files in /var/log has become so huge as 350 meg.

I succeeded in reducing them (copying on them /dev/null).

It seems to me that nothing "strange" was on them.

Now I ask how to manage in Mandrake 9.1. in order not to have again such a growth.

Thanks.
 
Old 09-03-2003, 08:17 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
What is the computer used for? What is filling up the logs? If this happend in a short amount of time and the PC is not recieving a heavy traffic load, then there might be something really wrong. I would check it out, there are a few people here that know there sh_t when it come to security. So, look through your log file and see which ones are the biggest. Then look through then and see what is filling them up.

Try logrotate, it should come with Mandrake.
 
Old 09-03-2003, 08:19 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Hi

You'll wanna see about using a tool called 'logrotate':
http://www.topology.org/linux/logrotate.html

It may also very well be on your install CD's.

Cool
 
Old 09-03-2003, 08:36 AM   #4
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Hi

Have u checked if cron is disbaled. Normally it cleans out some files on a periodic basis. If it is enabled then run a crontab to clean out the files or enteries not needed.

I would maybe suggest a back up of these log files before deleted for security reasons. Maybe try in bzip2 the files and mv them temporally to another dir, then maybe rm the files. This can all be done via the cronttab.

Cheers
 
Old 09-03-2003, 08:40 AM   #5
altor
LQ Newbie
 
Registered: Sep 2003
Location: Rome, Italy
Distribution: Mdk 9.1 (& RH 9)
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks

Many thanks for yours replies.

My box is "just for fun" trying to understand linux. The log became so big since I installed mdk 9.1 (bigin of may).

I'll try to understand if there is something wrong and look for logrotate. If I find something new I'll let you know

Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to deal with huge swp files such as .store.log.2.swp from squid directory? Niceman2005 Linux - General 2 11-01-2005 07:25 AM
huge log files - how do i shortn them? rosscopeeko Linux - General 2 03-30-2004 09:59 AM
Huge Firewall Log Files seanfitz Linux - Networking 1 01-29-2004 10:23 AM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 10:55 PM
HUGE sendmail log magyartoth Linux - General 2 02-19-2002 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration