What's new

Setting a quota on logs

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Denna

Senior Member
Is there a way to set a quota on log size (system, wireless, etc.) ?

Would logrotate be the best tool ?

What is a reasonable size limit for a log ?

Is there a relationship between the size of a log and its memory usage ?
 
Last edited:
There is only one log (syslog), which auto-rotates on 256 KB (if I remember correctly).
 
There is only one log (syslog), which auto-rotates on 256 KB (if I remember correctly).
Correct:
chief@RT-AC87U:/tmp/home/root# ps -w | grep syslog
686 admin 1412 S /sbin/syslogd -m 0 -S -O /tmp/syslog.log -s 256 -l 7


-s SIZE Max size (KB) before rotation (default:200KB, 0=off)

If you are not happy with the size before rotation, you can kill syslogd and start it with a different -s value - plus you can use -b NUM to define the number of rotated logs to keep (default:1, max=99, 0=purge).
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top