Welcome! Log In Create A New Profile

Advanced

Logging of mirror requests

Posted by Joe Doe 
Joe Doe
Logging of mirror requests
May 08, 2018 05:10AM
Hi,

I have used ngx_http_mirror_module to create mirrors. I would like to log
these requests as well? So in the /mirror location, I added access_log
directive, but the log file was created, but no logs were produced.

Is logging currently limited to only the original request?

Best,
Jay
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: Logging of mirror requests
May 08, 2018 09:20PM
Hello!

On Mon, May 07, 2018 at 07:59:10PM -0700, Joe Doe wrote:

> I have used ngx_http_mirror_module to create mirrors. I would like to log
> these requests as well? So in the /mirror location, I added access_log
> directive, but the log file was created, but no logs were produced.
>
> Is logging currently limited to only the original request?

By default, subrequests are not logged. If you want them to be
logged, consider the "log_subrequest" directive
(http://nginx.org/r/log_subrequest).

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Joe Doe
Re: Logging of mirror requests
May 09, 2018 07:10AM
Thank you very much! That did the trick.

On Tue, May 8, 2018 at 12:15 PM, Maxim Dounin <[email protected]> wrote:

> Hello!
>
> On Mon, May 07, 2018 at 07:59:10PM -0700, Joe Doe wrote:
>
> > I have used ngx_http_mirror_module to create mirrors. I would like to log
> > these requests as well? So in the /mirror location, I added access_log
> > directive, but the log file was created, but no logs were produced.
> >
> > Is logging currently limited to only the original request?
>
> By default, subrequests are not logged. If you want them to be
> logged, consider the "log_subrequest" directive
> (http://nginx.org/r/log_subrequest).
>
> --
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login