Clicky

Company running Apache web server on Mac OS X snow leopard server 10.6.x, the access_log file has over 2G, how can I enable log rotate script for this issue?

I know Linux can use logrotate to rotate the log files, but it seems no such function on Mac OS X snow leopard server, please advice.

asked 07/20/2011 12:41

liyy's gravatar image

liyy ♦♦


4 Answers:
This is already set.
Check /System/Library/LaunchDaemons/com.apple.newsyslog.plist and /etc/newsyslog.conf. for configurations
link
nappy_d's gravatar image

nappy_d

com.apple.newsyslog.plist is similar to Linux cron job function, I cat the newsyslog.conf as below, so, if i put Apache access log "access_log" on the bottom item, that is OK ?

newsyslog.conf
============
# logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
/var/log/appfirewall.log            640  5     1000      *     J
/var/log/ftp.log                  640  5         1000      *     J
/var/log/hwmond.log                  640  5         1000      *     J
/var/log/install.log                  640  5         1000      *     J
/var/log/ipfw.log                  640  5         1000      *     J
/var/log/lookupd.log                  640  5         1000      *     J
/var/log/lpr.log                  640  5         1000      *     J
/var/log/mail.log                  640  5         1000      *     J
/var/log/ppp.log                  640  5         1000      *     J
/var/log/secure.log                  640  5         1000      *     J
/var/log/system.log                  640  7         *      @T00  J
/var/log/wtmp                        644  3         *      @01T05 B
link
liyy's gravatar image

liyy

Should work.. :)
link
nappy_d's gravatar image

nappy_d

OK, let me test and reply this post later!
link
liyy's gravatar image

liyy

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

Asked: 07/20/2011 12:41

Seen: 96657 times

Last updated: 07/23/2011 05:19