简体   繁体   English

Apache 2 错误日志时间戳格式是什么?

[英]What is the Apache 2 error log timestamp format?

I am trying to add an Apache Error Log configuration to Goaccess, and I'm stuck on the timestamp format.我正在尝试将 Apache 错误日志配置添加到 Goaccess,但我坚持使用时间戳格式。 My current guess is %a %b %e %H:%M:%S %Y , but apparently that is incorrect, since it gives me error Token 'Sun Sep 11 09:51:43.343399 2022' doesn't match specifier '%t' .我目前的猜测是%a %b %e %H:%M:%S %Y ,但显然这是不正确的,因为它给了我错误Token 'Sun Sep 11 09:51:43.343399 2022' doesn't match specifier '%t' Can anyone tell me the default time stamp format?谁能告诉我默认的时间戳格式?

EDIT :编辑

I had previously changed the log format to [%t] [%l] [pid %P] %F: %E: [client %a] %M , if that helps.我之前已将日志格式更改为[%t] [%l] [pid %P] %F: %E: [client %a] %M ,如果有帮助的话。

Try this format:试试这种格式:

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

If it doesn't work try this:如果它不起作用试试这个:

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

Found in this page .在此页面中找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM