LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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,379

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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


All times are GMT -5. The time now is 09:01 AM.

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