Leoswaldo Macias Mancilla
05/30/2025, 7:52 PM%b %d %H:%M:%S.%f %Y and there is an issue with it.
I looked at github issues but I dont seem to find any bug filed yet for this.Pat
05/30/2025, 8:32 PMLeoswaldo Macias Mancilla
05/30/2025, 8:40 PMTime_Format
In apache the access_log and error_log have different formats for the Time:
⢠access_log Time looks like: [10/Oct/2000:13:55:36 -0700] and its regex is %d/%b/%Y:%H:%M:%S %z
⢠error_log Time looks like: [Thu May 12 08:28:57.652118 2011] and its regex is %b %d %H:%M:%S.%f %Y
ā¢
The access_log works, but the error_log won't. I suspect it has to do with the microseconds int the error log .%fPat
05/30/2025, 9:29 PMBraydon Kains
06/02/2025, 3:45 PM%f is not a valid option in strftime(3). This is the list I usually refer back to: https://en.cppreference.com/w/c/chrono/strftimeBraydon Kains
06/02/2025, 3:47 PMLeoswaldo Macias Mancilla
06/02/2025, 4:39 PMLeoswaldo Macias Mancilla
06/02/2025, 5:00 PM%6N but even that fails :S
%b %d %H:%M:%S.%6N %YLeoswaldo Macias Mancilla
06/02/2025, 5:07 PMBraydon Kains
06/02/2025, 5:23 PMBraydon Kains
06/02/2025, 5:30 PMBraydon Kains
06/03/2025, 1:57 PM%a %b %d %H:%M:%S.%L %YBraydon Kains
06/03/2025, 2:01 PMBraydon Kains
06/03/2025, 2:01 PM%L is what you're looking forBraydon Kains
06/03/2025, 2:09 PMstrftime(3) resources for this because this is parsing, and the actual call is strptime(3) though it is much the same directives https://man7.org/linux/man-pages/man3/strptime.3.html)Pat
06/03/2025, 2:20 PMLeoswaldo Macias Mancilla
06/03/2025, 5:31 PM%b %d %H:%M:%S.%L %Y
Thanks @Braydon Kains and @Pat for your help.
As follow up, is this something you want to document or I can help you documenting but pretty sure someone will have this issue laterBraydon Kains
06/03/2025, 5:33 PMLeoswaldo Macias Mancilla
06/03/2025, 5:35 PM