nginx access_log Buffer size, service not restarting

Muhammad Yousuf Khan sirtcp at
Wed Apr 27 12:29:03 UTC 2016

i am trying to increase the buffer size of access_log

i have tried different options but all giving me errors

access_log /var/log/nginx/ main buffer=1024k;
access_log /var/log/nginx/ compression buffer=1024k;
access_log /var/log/nginx/  buffer=1024k;

here is the result.

2016/04/27 12:01:40 [emerg] 26411#0: unknown log format "compression" in
2016/04/27 12:03:29 [emerg] 26470#0: unknown log format "buffer=32k" in
2016/04/27 12:08:44 [emerg] 26569#0: unknown log format "main" in

Your expert advice is requested.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list