access_log

nginx服务器,从access_log里面提取需要的数据

#!/bin/bash #author:xxx start_time=`date +'%d/%b/%Y:%H:00:00' -d '-1 hours'` end_time=`date +'%d/%b/%Y:%H:59:59' -d '-1 hours'` #echo $start_time #ech ......
access_log 服务器 数据 access nginx

把nginx的access_log以json的格式输出

# 在`nginx.conf`中添加如下配置 log_format json escape=json '{"@timestamp":"$time_iso8601",' '"server_addr":"$server_addr",' '"remote_addr":"$remote_addr",' '" ......
access_log 格式 access nginx json
共2篇  :1/1页 首页上一页1下一页尾页