You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2024. It is now read-only.
hacked it by presuming that %t (timestamps) are always wrapped in [ & ].
Tried to look at the httpd/apache source code, and I think it uses
APR_TIME_T_FMT but couldn't see where that was defined.
see #9
[make_regex('%r'), '.*?', lambdamatch: 'request_first_line', extra_request_from_first_line], # First line of request
108
108
[make_regex('%R'), '.*?', lambdamatch: 'handler', lambdamatched_strings: matched_strings], # The handler generating the response (if any).
109
109
[make_regex('%s'), '[0-9]+?', lambdamatch: 'status', lambdamatched_strings: matched_strings], # Status. For requests that got internally redirected, this is the status of the *original* request --- %>s for the last.
110
-
[make_regex('%t'), '.*?', lambdamatch: 'time_received', format_time], # Time the request was received (standard english format)
110
+
[make_regex('%t'), '\[.*?\]', lambdamatch: 'time_received', format_time], # Time the request was received (standard english format)
111
111
[make_regex('%\{[^\}]+?\}t'), '.*?', extract_inner_value("time_", "t") , lambdamatched_strings: matched_strings], # The time, in the form given by format, which should be in strftime(3) format. (potentially localized)
112
112
[make_regex('%\{[^\}]+?\}x'), '.*?', extract_inner_value("extension_", "x") , lambdamatched_strings: matched_strings], # Extension value, e.g. mod_ssl protocol and cipher
113
113
[make_regex('%T'), '.*?', lambdamatch: 'time_s', lambdamatched_strings: matched_strings], # The time taken to serve the request, in seconds.
0 commit comments