Custom error_log format

2017-07-03 Thread Georgi Georgiev
Hello, I would like to have / to add the $request_id variable in the error_log, but I read that the only possible way is to add it to the source code. Has anyone here an experience with that, which file and what should I add? Or some other workaround?

Re: $request_id not logged in the nginx logs

2017-06-27 Thread Georgi Georgiev
s' at the end of ‘add_header’ line. > > > http://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header > >If the always parameter is specified (1.7.5), the header field will be > added regardless of the response code. > > >> On Jun 28,

Re: $request_id not logged in the nginx logs

2017-06-27 Thread Georgi Georgiev
Nobody use this variable? > On Jun 26, 2017, at 2:28 PM, Georgi Georgiev > wrote: > > Hello, > I have enabled request_id headers in nginx (which works as reverse proxy) by > the following way: > > In nginx.co <http://nginx.com/>nf my log format hs incl

$request_id not logged in the nginx logs

2017-06-26 Thread Georgi Georgiev
Hello, I have enabled request_id headers in nginx (which works as reverse proxy) by the following way: In nginx.co nf my log format hs included $request_id as follows: log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $bo