goaccess分析nginx日誌

定義nginx日誌格式爲默認格式:html

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';nginx

 

# yum -y install goaccess日誌

# goaccess -f access.log  --log-format=COMBINED -a > access.htmlorm

   --log-format=COMBINED 選擇日誌格式爲混合模式htm

相關文章
相關標籤/搜索