LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-18-2008, 11:05 AM   #1
lior.m
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Syslog file size


How can I limit the size of a file that is used by syslog?
 
Old 08-18-2008, 01:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well not a great question, but you probably want to look towards logrotate rather than syslog itself, assuming you're just using standard syslogd which pays no attention to file management.
 
Old 08-18-2008, 03:43 PM   #3
jkzfixme
Member
 
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Blog Entries: 21

Rep: Reputation: 52
You can configure the maximum size of syslogd log files by setting the variable LOG_SIZE in /etc/default/syslogd.

Regards
JKZfixme
 
Old 08-19-2008, 02:11 AM   #4
lior.m
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
well not a great question, but you probably want to look towards logrotate rather than syslog itself, assuming you're just using standard syslogd which pays no attention to file management.
Well, actually I want to use the logrotate but limit the size of the files that are used for log rotate. Can I use the LOG_SIZE for that?
 
  


Reply

Tags
syslogd


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
syslog and the size of file! Linux For Ever Slackware 6 12-18-2007 03:05 AM
any ideas to reduce log file size or make log file size managed? George2 Programming 2 08-13-2006 06:55 AM
Syslog-ng File Separation MrJoshua Linux - Software 2 06-16-2006 09:46 AM
decode my syslog file epoo Slackware 6 04-04-2005 06:30 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM

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

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