LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-19-2004, 11:39 AM   #1
jonsag
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
how do I rotate the syslog


it's 45M now, can't be good

if I would like to save it with todays date, and then clear it, say once a week, how would I go about it?
 
Old 12-19-2004, 01:00 PM   #2
IchBin
Member
 
Registered: Dec 2004
Distribution: Tinysofa Classic
Posts: 75

Rep: Reputation: 15
Well if I new more about it I'd give you help. But I do know there's a program called logrotate in linux that will do it.
Try "man logrotate" and see if you get anything.
 
Old 12-19-2004, 01:05 PM   #3
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
"logrotate" is a good tool for handling logs. On most systems, that is already set up for you, so it may be that your machine is turned off at the time it is set to run?

For example, on a RH box here, logrotate runs at 4:02 AM, and syslog is controlled by an entry in /etc/logrotate.d

--
Tony Lawrence
http://aplawrence.com
 
Old 12-19-2004, 02:33 PM   #4
jonsag
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
ok will look into the logrotate

thanks for the info
 
  


Reply



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
lastlog - What is it, and how do I rotate it? ifm Linux - Newbie 9 04-22-2011 09:45 AM
rotate text bizshop Linux - Software 1 06-22-2005 05:17 PM
rotate apache logs Berhanie Slackware 5 12-15-2004 09:36 PM
merging the syslog rotate scripts monkeywrench Debian 0 11-18-2004 06:33 PM
Log Rotate MaverickApollo Linux - Software 3 01-19-2004 12:12 AM

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

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

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