「六」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一致
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章