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 09-18-2003, 08:18 AM   #1
ganninu
Member
 
Registered: Jul 2003
Distribution: RH 7.3/8.0/9.0, Debian Stable 3.0, FreeBSD 5.2, Solaris 8/9/10,HP-UX
Posts: 340

Rep: Reputation: 30
Limiting the size of a log file


I'm using a syslog daemon to capture logs and put them in /var/log/my_log_file.log . This logfile is incredibly increasing in terms of size. Is there an intelligent way to restrict its size, to say, 1 MB, and new data will overwrite the older one? Thanks folks.
 
Old 09-18-2003, 09:23 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
I haven't used RedHat in a long time, but if I'm not wrong RedHat uses logrotate (/etc/logrotate.d/).

Take a look at the examples there.

You can add your entry or create a seperate file(s) for your personal stuff.

Also take a look at: man 8 logrotate

Last edited by druuna; 09-18-2003 at 09:24 AM.
 
  


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
/var/log/maillog file size vaughn Linux - Software 6 12-15-2003 06:12 PM
How to control log file size in /var/log? yan Linux - General 2 10-13-2003 06:00 PM
Limiting Access_log Size John Webb Linux - General 2 07-24-2003 08:06 PM
limiting the size of each directory sophie Linux - Newbie 1 07-24-2003 12:49 PM
limiting the size of a directory chandan Linux - Newbie 1 06-30-2003 06:35 AM


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