<div dir="ltr"><div>Thanks, got it. and it worked too.<br><br></div>Thanks alot.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 27, 2016 at 7:04 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<span class=""><br>
On Wed, Apr 27, 2016 at 05:29:03PM +0500, Muhammad Yousuf Khan wrote:<br>
<br>
> i am trying to increase the buffer size of access_log<br>
><br>
> i have tried different options but all giving me errors<br>
><br>
> access_log /var/log/nginx/<a href="http://www.xxxxx.com/access.log" rel="noreferrer" target="_blank">www.xxxxx.com/access.log</a> main buffer=1024k;<br>
> access_log /var/log/nginx/<a href="http://www.xxxxx.com/access.log" rel="noreferrer" target="_blank">www.xxxxx.com/access.log</a> compression buffer=1024k;<br>
> access_log /var/log/nginx/<a href="http://www.xxxxx.com/access.log" rel="noreferrer" target="_blank">www.xxxxx.com/access.log</a>  buffer=1024k;<br>
><br>
><br>
> here is the result.<br>
><br>
> 2016/04/27 12:01:40 [emerg] 26411#0: unknown log format "compression" in<br>
> /etc/nginx/sites-enabled/default:87<br>
> 2016/04/27 12:03:29 [emerg] 26470#0: unknown log format "buffer=32k" in<br>
> /etc/nginx/sites-enabled/default:87<br>
> 2016/04/27 12:08:44 [emerg] 26569#0: unknown log format "main" in<br>
> /etc/nginx/sites-enabled/default:87<br>
><br>
> Your expert advice is requested.<br>
<br>
</span>Please read the documentation here:<br>
<br>
<a href="http://nginx.org/en/docs/http/ngx_http_log_module.html" rel="noreferrer" target="_blank">http://nginx.org/en/docs/http/ngx_http_log_module.html</a><br>
<br>
If you are using additional options like "buffer=", a format of the<br>
log must be specified.  You can use predefined "combined" format<br>
if you are ok with it, i.e.:<br>
<br>
access_log /path/to/log combined buffer=1m;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" rel="noreferrer" target="_blank">http://nginx.org/</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</font></span></blockquote></div><br></div>