How frequently nginx flushes its buffer to access_log by default ?
In manual there is not info, just setup syntax:
access_log path [format [buffer=size [flush=time]] [if=condition]];
Nginx doesn't flush unless you specify the flush
option (even if you have specified the buffer
option).
Here's an example of how to buffer packets of 8k to the log every five minutes:
access_log /var/log/nginx/access.log main buffer=8k flush=5m;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With