Hello!
On Wed, Jul 23, 2014 at 12:57 PM, Aleksey Smart wrote:
> I can't use content_by_lua, because it does not available to get http
> response status code.
>
You can use log_by_lua + ngx.timer.at (with 0 delay). This is the
approach used by the lua-resty-logger-socket library we are using
online:
https://github.com/cloudflare/lua-resty-logger-socket
> I found solution - undocumented directive post_action. It is very simple to
> use:
>
post_action is undocumented for a reason: it is buggy and have issues
in special cases. Better avoid it. Use the approach above.
Regards,
-agentzh