I examined this myself a bit, and as far as I can tell, nginx does not flush buffers at all unless you specify the flush parameter. (Or, if so, it is over 20 minutes.)
The only exception is if you reboot the server, the logs are rebooted before rebooting.
Therefore, if you specify a buffer, you must also specify a cleanup time.
source share