LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-10-2003, 09:35 AM   #1
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Ubuntu
Posts: 466

Rep: Reputation: 30
Clearing System Logs in Red Hat 8.0


Does someone know how to clear the system logs using Red Hat 8.0? I know how to view them but I really don't want these logs taking up so much space and some of it I'd just like to dump. Any ideas? Thanks.
 
Old 04-10-2003, 01:17 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
You may already have logrotate running as a cron job. logrotate will archive old logs based on age or size and gzip up the old ones. If you want you can just remove the old logfiles.

check out man logrotate
 
Old 05-29-2003, 06:35 PM   #3
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Ubuntu
Posts: 466

Original Poster
Rep: Reputation: 30
Can you tell me how to remove the old ones?
 
Old 05-30-2003, 06:26 AM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
to remove them just use 'rm' plus the name of the file.

To take care of the problem automatically however, you will need to edit logrotate's configuration file to remove the logs based on user-defined criteria such as size, date, time etc...

As I mentioned, read man logrotate for how to set this up.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can anyone describe any command present in Red Hat Linux for clearing cache contents. simi_544 Linux - Software 1 03-16-2005 04:58 AM
confused by my new red hat 9 system dave bean Red Hat 3 03-04-2005 08:29 AM
Red Hat 7 System Requirements dustin_wielenga Red Hat 9 07-01-2004 12:12 AM
Red Hat 8.0 system becomes sluggish pdohman Linux - Software 4 11-13-2003 04:10 AM
Red Hat 9.0 Logs off user after inactivity? JTG Red Hat 2 09-05-2003 01:21 AM


All times are GMT -5. The time now is 11:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration