系统相关
首页 > 系统相关> > nginx日志按日期存储

nginx日志按日期存储

作者:互联网

http {     include       mime.types;     default_type  application/octet-stream;     map $time_iso8601 $logdate {         '~^(?<ymd>\d{4}-\d{2}-\d{2})' $ymd;         default    'date-not-found';     }     access_log logs/access-$logdate.log;

标签:存储,log,stream,default,access,nginx,logdate,日志,logs
来源: https://www.cnblogs.com/LinkingCloud/p/16673372.html