Error_log format (json) or suggestions?

2018-08-09 Thread Pablo Fischer
Howdy, I've a project that I need to send the error log but it only accepts json format (I know I know), in the past I used logstash but right now that is not an option so looking to see if anyone has done any patch or ways to go around it. Ideally this should either be any of: a) Log to current

Bytes sent to upstream

2018-03-27 Thread Pablo Fischer
Hello, Seems like the upstream_bytes_sent variable only exists for the stream module and not for the http_upstream. Is there a way (via a variable would be better) to know the bytes that nginx has sent to upstream? Thanks! -- Pablo ___ nginx mailing l

[PATCH] Send Connection: close for draining.

2018-03-20 Thread Pablo Fischer
Howdy, First off sorry if the C code is a bit ugly, been a while since I did some C with nginx. So I've some very long running keep-alive connections that although keepalive_timeout helps it is just "not enough" or "fast enough" when I need it to stop draining connections. I looked at the headers

Nginx TCP stream access log

2016-04-04 Thread Pablo Fischer
Howdy folks, We are using nginx with stream TCP support but we are wondering if there is a way to have access logs for TCP for at least to know a few things such as: - timestamp (of request) - source address. - destination address - time. Is there a way to log this information? nginx versio

Memory zone usage

2015-07-30 Thread Pablo Fischer
Howdy! Was wondering if there's a way to know the memory usage that a zone (like limit_req) is having? Reason I ask is because I think I'm the value I've today might me a bit high but before I change it I would like to check during the day what is its current usage. Thanks! -- Pablo __