I'm a bit worried because its been a couple of days and my access log file is up to 250MB+. Does it roll log files over and delete them? I'd like for there only to be 1GB or less of log files total.
I'm a bit worried because its been a couple of days and my access log file is up to 250MB+. Does it roll log files over and delete them? I'd like for there only to be 1GB or less of log files total.
Unlike
apache
, which provides therotatelogs
utility,ngingx
relies on the OS for this task, specifically in thelogrotate(8)
utility.In the
nginx
wiki, it is noted that file rotation can be safely handled using the USR1 signal. The same wiki page links to the Debian defaultlograte(8)
script installed along thenginx
package: