LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08:35 AM   #1
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

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, 12: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: 78
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, 05:35 PM   #3
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Original Poster
Rep: Reputation: 30
Can you tell me how to remove the old ones?
 
Old 05-30-2003, 05: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: 78
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 03:58 AM
confused by my new red hat 9 system dave bean Red Hat 3 03-04-2005 07:29 AM
Red Hat 7 System Requirements dustin_wielenga Red Hat 9 06-30-2004 11:12 PM
Red Hat 8.0 system becomes sluggish pdohman Linux - Software 4 11-13-2003 03:10 AM
Red Hat 9.0 Logs off user after inactivity? JTG Red Hat 2 09-05-2003 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:58 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