Koozali.org: home of the SME Server

Log Files are too big.

RWilson

Log Files are too big.
« on: November 01, 2005, 03:17:22 PM »
How do I reduce the max size of the log files? I believe they are set to grow to 5meg. how to I change this to 2 meg.

I talk to a few servers down slow links and 5meg is way too big for a log file here.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Log Files are too big.
« Reply #1 on: November 01, 2005, 05:12:56 PM »
Quote from: "RWilson"
How do I reduce the max size of the log files? I believe they are set to grow to 5meg. how to I change this to 2 meg.


Edit /service/blah/log/run then do:

svc -t /service/blah/log

for each service "blah" you care about.

This doesn't affect /var/log/messages or /var/log/httpd/* - those are rotated by time not by size.