LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Syslog file size (https://www.linuxquestions.org/questions/linux-newbie-8/syslog-file-size-663615/)

lior.m 08-18-2008 11:05 AM

Syslog file size
 
How can I limit the size of a file that is used by syslog?

acid_kewpie 08-18-2008 01:03 PM

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.

jkzfixme 08-18-2008 03:43 PM

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

Regards
JKZfixme

lior.m 08-19-2008 02:11 AM

Quote:

Originally Posted by acid_kewpie (Post 3251746)
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?


All times are GMT -5. The time now is 07:05 PM.