「六」Goaccess實現可視化

  • 下載
apt install goaccess
  • 使用goaccess進行監控
LANG="en_US.UTF-8" bash -c 'goaccess logs/access.log -o html/report.html --real-time-html --time-format='%H:%M:%S' --date-format='%d/%b/%Y' --log-format=COMBINED '
WebSocket server ready to accept new client connections

注意點

  1. 命令行加&後臺運行
  2. 需打開7890端口
  3. 日誌分割也可以用goaccess做分析,因爲他的分析結果存儲在內存中
  4. 注意log格式與log format一致
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章