nginx埋点,按天输出日志,filebeat收集日志到elasticsearch
一、Nginx 按天生成日志
定义时间变量指定格式
map $time_iso8601 $logdate {
'~^(?<ymd>\d{4}-\d{2}-\d{2})' $ymd;
default 'date-not-found';
}
自定义日志json格式
log_format json_log '{"time":"$log

