XFileSharing Pro - nginx log rotation?

Message
Author
venture89
Posts: 95
Joined: Aug 30, 2011 12:11 am

nginx log rotation?

#1 Postby venture89 » Oct 15, 2012 11:12 pm

Hello All, I noticed that there are large (15GB) log files in /usr/local/nginx/logs these can not be opened using any windows program so pretty much useless in that sense.

Would it be possible to rotate the nginx logs? So that each day nginx create a new log file. Would be nice if we can keep last 7 days logs only ;)

Any suggestions?

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#2 Postby ankurs » Oct 16, 2012 6:32 am

i don't see a reason to enable logs, unless you want to debug; which is not done everyday

check : https://wincent.com/wiki/nginx_log_rotation

just Google and you will find other similar scripts for log rotation