Hi,
Is there a maximum size (and a corresponding tunable buffer size or
so) for a string that can be logged in nginx Error log? I could find
the tunable for access log (buffer=size), but not for error log.
Thanks,
Ashish
Hi,
Is there a maximum size (and a corresponding tunable buffer size or
so) for a string that can be logged in nginx Error log? I could find
the tunable for access log (buffer=size), but not for error log.
Thanks,
Ashish
Hi,
I achieved a higher size than 2048 bytes, by directly tweaking
NGX_MAX_ERROR_STR in ngx_log.h
But still couldn’t figure out if there was a config option to change
this.
Thanks,
Ashish
Hello!
On Tue, May 01, 2012 at 08:38:01AM -0700, Ashish S wrote:
Is there a maximum size (and a corresponding tunable buffer size or
so) for a string that can be logged in nginx Error log? I could find
The hard limit is in code, NGX_MAX_ERROR_STR which is defined to
2048. The limit is due to use of static buffer for logging
errors, it’s used to avoid allocations in error logging path (as
allocation may fail, especially if we are trying to log allocation
error).
the tunable for access log (buffer=size), but not for error log.
The access log line size isn’t limited. The buffer= argument is
to reduce number of write() calls, which is helpfull in case of high
load.
Maxim D.
Thanks for the response, maxim!
–Ashish
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs