【问题标题】:GoAccess not recognizing --keep-db-files and othersGoAccess 无法识别 --keep-db-files 等
【发布时间】:2016-12-02 04:21:29
【问题描述】:

我已经在我的 Ubuntu 16.04 操作系统上安装了 goaccess-1.0.2 以及 goaccess 手册页提供的 ncurses 和可选依赖项。

我可以使用以下命令成功解析日志:goaccess -f access.log -a。我可以使用以下命令 goaccess -f access.log -a -o report.html 在 html 报告中创建日志。

无法使用以下命令 goaccess -f access.log -o report.html --real-time-html 成功地将数据解析为实时 html 输出。但是,它确实开始解析,但在某些时候它会冻结。所以我认为数据对于内存来说太大了。

所以我想学习如何将数据解析到磁盘。我使用了以下命令goaccess -f access.log --keep-db-files。我收到了以下反馈:goaccess: unrecognized option '--keep-db-files'

我想也许我错过了依赖项,但我通过 goaccess 手册页检查了一遍,似乎不是。

【问题讨论】:

    标签: goaccess


    【解决方案1】:

    但是,它确实开始解析,但在某些时候它会冻结。所以我认为数据对于内存来说太大了。

    如果您使用goaccess -f access.log -a 成功解析了相同的日志,那么使用--real-time-html 应该没有任何区别。使用top 检查您的内存使用情况或查看dmesg

    我使用了以下命令 goaccess -f access.log --keep-db-files。我收到以下反馈:goaccess: unrecognized option '--keep-db-files'

    您需要编译带有 btree 支持的 GoAccess。为此,您需要安装TokyoCabinet,然后从源代码构建goaccess:

    $ sudo apt-get install libtokyocabinet-dev
    $ curl http://tar.goaccess.io/goaccess-1.0.2.tar.gz | tar xvz
    $ cd goaccess-1.0.2/
    $ ./configure --enable-utf8 --enable-geoip --enable-tcb=btree
    $ make
    $ sudo make install
    

    【讨论】:

    • 谢谢。我已经安装了可选的依赖项。我又经历了一切。我错过了zlib-devel。呃...感谢 Kayla 的反馈!
    猜你喜欢
    • 2021-12-08
    • 1970-01-01
    • 2021-04-04
    • 1970-01-01
    • 2012-12-18
    • 1970-01-01
    • 2012-06-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多