# Default access\_log buffering

**URL:** <https://www.ruby-forum.com/t/default-access-log-buffering/242806>\
**Category:** NGINX\
**Created:** [July 29, 2015, 8:56pm UTC](https://www.ruby-forum.com/t/default-access-log-buffering/242806 "2015-07-29T20:56:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [July 29, 2015, 8:56pm UTC](https://www.ruby-forum.com/t/default-access-log-buffering/242806/1 "2015-07-29T20:56:23Z")

</div>

I was reading an article on performance on the Nginx site:  
[Tuning NGINX for Performance - NGINX](https://www.nginx.com/blog/tuning-nginx/) One thing mentioned was  
enabling  
buffering on the access\_log.

However, the directive reference  
([Module ngx\_http\_log\_module](http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log)) says  
that the default buffer size is 64 KB. Does this mean that buffering is  
enabled by default, with a size of 64 KB, or that if the buffer is  
enabled  
without a specified size, it will be 64 KB?

Posted at Nginx Forum:

> **[Default access\_log buffering](https://forum.nginx.org/read.php?2,260630,260630#msg-260630)**
>
> I was reading an article on performance on the Nginx site: https://www.nginx.com/blog/tuning-nginx/ One thing mentioned was enabling buffering on the access\_log. However, the directive reference...

---

<div class="post-metadata">

**Author:** ![doolli\_doug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/13edae/32.png) [@doolli\_doug](https://www.ruby-forum.com/u/doolli_doug)\
**Post date:** [July 29, 2015, 9:58pm UTC](https://www.ruby-forum.com/t/default-access-log-buffering/242806/2 "2015-07-29T21:58:53Z")

</div>

Hello!

On Wed, Jul 29, 2015 at 02:55:54PM -0400, doolli\_doug wrote:

> I was reading an article on performance on the Nginx site:  
> [NGINX | F5](https://www.nginx.com/blog/tuning-nginx/) One thing mentioned was enabling  
> buffering on the access\_log.
> 
> However, the directive reference  
> ([Module ngx\_http\_log\_module](http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log)) says  
> that the default buffer size is 64 KB. Does this mean that buffering is  
> enabled by default, with a size of 64 KB, or that if the buffer is enabled  
> without a specified size, it will be 64 KB?

The default buffer size the documentation talks about is one used  
if you enable the “gzip” parameter, but don’t specify buffer size  
explicitly.

–  
Maxim D.

> **[nginx](http://nginx.org/)**
