【问题标题】:What is the Apache 2 error log timestamp format?什么是 Apache 2 错误日志时间戳格式?
【发布时间】:2022-10-05 21:32:35
【问题描述】:

我正在尝试将 Apache 错误日志配置添加到 Goaccess,但我坚持使用时间戳格式。我目前的猜测是%a %b %e %H:%M:%S %Y,但显然这是不正确的,因为它给了我错误Token \'Sun Sep 11 09:51:43.343399 2022\' doesn\'t match specifier \'%t\'。谁能告诉我默认的时间戳格式?

编辑

如果有帮助,我之前已将日志格式更改为 [%t] [%l] [pid %P] %F: %E: [client %a] %M

    标签: apache2 strftime goaccess


    【解决方案1】:

    试试这种格式:

    %a %b %d %H:%M:%S%f %Y
    

    如果它不起作用试试这个:

    %{%a %b %d %H:%M:%S%f %Y}t
    

    在此page 上找到。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-03-09
      • 1970-01-01
      • 1970-01-01
      • 2013-12-25
      • 2013-05-11
      • 2022-08-05
      • 1970-01-01
      相关资源
      最近更新 更多