如何定制Nginx的Log输出格式

  set $currentDate 'day';
                access_by_lua '
                    ngx.var.currentDate = os.date("%Y-%m-%d")
                ';
                access_log /logs/app.access.$currentDate.log app_log;

图片:yuanzhang.png yuanzhang.png

一个很棒的库 https://github.com/cloudflare/lua-resty-logger-socket

下载链接:一个独立的LOG输出模块

糖果

糖果
LUA从入门到放弃

服务器大负载情况下客户端出现Connection reset by peer

服务器大负载情况下客户端出现Connection reset by peer Continue reading

Nginx+Lua中文WIKI

Published on March 14, 2019

F5收购Nginx

Published on March 12, 2019