Maxim Dounin
April 27, 2016 10:06AM
Hello!

On Wed, Apr 27, 2016 at 05:29:03PM +0500, Muhammad Yousuf Khan wrote:

> 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/www.xxxxx.com/access.log main buffer=1024k;
> access_log /var/log/nginx/www.xxxxx.com/access.log compression buffer=1024k;
> access_log /var/log/nginx/www.xxxxx.com/access.log buffer=1024k;
>
>
> here is the result.
>
> 2016/04/27 12:01:40 [emerg] 26411#0: unknown log format "compression" in
> /etc/nginx/sites-enabled/default:87
> 2016/04/27 12:03:29 [emerg] 26470#0: unknown log format "buffer=32k" in
> /etc/nginx/sites-enabled/default:87
> 2016/04/27 12:08:44 [emerg] 26569#0: unknown log format "main" in
> /etc/nginx/sites-enabled/default:87
>
> Your expert advice is requested.

Please read the documentation here:

http://nginx.org/en/docs/http/ngx_http_log_module.html

If you are using additional options like "buffer=", a format of the
log must be specified. You can use predefined "combined" format
if you are ok with it, i.e.:

access_log /path/to/log combined buffer=1m;

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx access_log Buffer size, service not restarting

Muhammad Yousuf Khan April 27, 2016 08:30AM

Re: nginx access_log Buffer size, service not restarting

Maxim Dounin April 27, 2016 10:06AM

Re: nginx access_log Buffer size, service not restarting

Muhammad Yousuf Khan April 28, 2016 08:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready