Re: How to make the log file printed by access_log split

2013-07-25 Thread Richard Kearsley
Hi There's no size limit, it will keep getting bigger until your disk is full Here's a script I use to rotate the log, run it from cron every hour hope it helps #!/bin/sh PID=`cat /usr/local/nginx/logs/nginx.pid` LOG="/usr/local/nginx/logs/access.log" NOW=$(date +"%Y-%m-%d-%H-%M") NEWLOG="${LOG}.

Re: How to make the log file printed by access_log split

2013-07-25 Thread Maxim Dounin
Hello! On Thu, Jul 25, 2013 at 04:52:38AM -0400, shawnxzhou wrote: > what's the limit of the size of log file, and what will happen when it > reaches the limitation? > if I want to split the log file by timeline, say start a new file on the > beginning of an hour, how can I configure ngnix? This

How to make the log file printed by access_log split

2013-07-25 Thread shawnxzhou
what's the limit of the size of log file, and what will happen when it reaches the limitation? if I want to split the log file by timeline, say start a new file on the beginning of an hour, how can I configure ngnix? thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241226,241226#m