【问题标题】:How to configure goaccess for real-time report如何配置goaccess进行实时报告
【发布时间】:2021-09-22 12:04:37
【问题描述】:

最近开始使用 GoAccess,能够访问控制台仪表板,甚至获得静态 html 页面。但是想在服务器上有实时报告,但每次我尝试生成静态 html 或实时报告时,它总是打开 websocket 并等待用户输入。

# goaccess /var/log/httpd/access_log -o /var/www/html/report.html
 [PARSING /var/log/httpd/access_log] {92,75,851} @ {14,794/s}
WebSocket server ready to accept new client connections

【问题讨论】:

    标签: logging goaccess


    【解决方案1】:

    能够按如下方式解决此问题,现在整个过程在后台运行。现在将继续将其作为一项服务,在服务器重新启动时自动启动

    goaccess /var/log/httpd/access_log -o /var/www/html/report.html --real-time-html --daemonize
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多