Welcome! Log In Create A New Profile

Advanced

RE: Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

Reinis Rozitis
December 19, 2023 09:00AM
> nginx: [emerg] unknown directive "log_by_lua_block" in /etc/nginx/conf.d/microservice.conf:8
> nginx: configuration file /etc/nginx/nginx.conf test failed

You need nginx lua/openresty module, but I'm not sure if Centos (community version) repository has it.

You might need to build it yourself https://github.com/openresty/lua-nginx-module#installation

Or use the nginx plus commercial version: https://docs.nginx.com/nginx/admin-guide/dynamic-modules/lua/


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

Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

kaushalshriyan December 18, 2023 11:56AM

Re: Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

Sergey A. Osokin December 18, 2023 12:50PM

Re: Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

kaushalshriyan December 18, 2023 01:22PM

RE: Capture full request/response body logging in nginx configured in reverse proxy mode reports nginx: [emerg] unknown directive "log_by_lua_block"

Reinis Rozitis December 19, 2023 09:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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