Welcome! Log In Create A New Profile

Advanced

Re: Disable access logging?

Rob Schultz
January 08, 2010 12:52AM
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 Schultz
On Jan 7, 2010, at 10:56 PM, Dennis J. wrote:

> On 01/08/2010 04:42 AM, Steve wrote:
>>
>> -------- Original-Nachricht --------
>>> Datum: Thu, 07 Jan 2010 22:32:17 -0500
>>> Von: "SnakeV"<nginx-forum@nginx.us>
>>> An: nginx@nginx.org
>>> 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;
>>
>> 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
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


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

Disable access logging?

SnakeV January 07, 2010 10:32PM

Re: Disable access logging?

Steve January 07, 2010 10:48PM

Re: Disable access logging?

Dennis J. January 08, 2010 12:00AM

Re: Disable access logging?

Rob Schultz January 08, 2010 12:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
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