# Disable access logging?

**URL:** <https://www.ruby-forum.com/t/disable-access-logging/181248>\
**Category:** NGINX\
**Created:** [January 8, 2010, 4:32am UTC](https://www.ruby-forum.com/t/disable-access-logging/181248 "2010-01-08T04:32:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnakeV](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@SnakeV](https://www.ruby-forum.com/u/SnakeV)\
**Post date:** [January 8, 2010, 4:32am UTC](https://www.ruby-forum.com/t/disable-access-logging/181248/1 "2010-01-08T04:32:51Z")

</div>

Hello,

How can disable access\_logs in nginx, i have a site with a lot of  
request and access\_log increments a lot of GB daily.

Thanks 🙂

Posted at Nginx Forum:

> **[Disable access logging?](https://forum.nginx.org/read.php?2,38447,38447#msg-38447)**
>
> Hello, How can disable access\_logs in nginx, i have a site with a lot of request and access\_log increments a lot of GB daily. Thanks :)

---

<div class="post-metadata">

**Author:** ![SnakeV](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@SnakeV](https://www.ruby-forum.com/u/SnakeV)\
**Post date:** [January 8, 2010, 4:42am UTC](https://www.ruby-forum.com/t/disable-access-logging/181248/2 "2010-01-08T04:42:48Z")

</div>

-------- Original-Nachricht --------

> Datum: Thu, 07 Jan 2010 22:32:17 -0500  
> Von: “SnakeV” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Betreff: Disable access logging?

> Hello,
> 
> How can disable access\_logs in nginx, i have a site with a lot of request  
> and access\_log increments a lot of GB daily.

How about reading documentation?

access\_log off;

> **[GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki...](https://github.com/nginxinc/nginx-wiki)**
>
> ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com

> Thanks 🙂
> 
> Posted at Nginx Forum:  
> [http://forum.nginx.org/read.php?2,38447,38447#msg-38447](http://forum.nginx.org/read.php?2,38447,38447#msg-38447)
> 
> * * *
> 
> nginx mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

–  
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!  
[http://portal.gmx.net/de/go/dsl02](http://portal.gmx.net/de/go/dsl02)

---

<div class="post-metadata">

**Author:** ![SnakeV](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@SnakeV](https://www.ruby-forum.com/u/SnakeV)\
**Post date:** [January 8, 2010, 6:49am UTC](https://www.ruby-forum.com/t/disable-access-logging/181248/3 "2010-01-08T06:49:14Z")

</div>

I would presume because you would never really want error\_log turned  
off. You would probably always want to see if errors are happening. If  
you are getting lots of errors and you don’t mind them just change the  
level of error logging.

On the other hand sometime you don’t need access logging in certain  
parts of your config like favicon.ico or maybe you don’t want access  
logging on all your image or css files only your main url’s getting  
accessed.

V/r,  
Rob S.

---

<div class="post-metadata">

**Author:** ![SnakeV](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@SnakeV](https://www.ruby-forum.com/u/SnakeV)\
**Post date:** [January 8, 2010, 5:57am UTC](https://www.ruby-forum.com/t/disable-access-logging/181248/4 "2010-01-08T05:57:09Z")

</div>

On 01/08/2010 04:42 AM, Steve wrote:

> > and access\_log increments a lot of GB daily.
> 
> How about reading documentation?
> 
> access\_log off;
> 
> [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/NginxHttpLogModule#access_log)

Why is it that “access\_log off” turns off logging but “error\_log off”  
creates a logfile “off”? This seems very inconsistent to me and a trap a  
user can _very_ easily fall into if he’s not familiar with this quirky  
behaviour.

Regards,  
Dennis
