Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Apache 2.4 introduced sub-second granularity for log timestamps, so you can do things like

LogFormat "%{%d/%b/%Y %T}t.%{msec_frac}t %{%z}t [...]

As far as I can tell, this feature is not available natively in Apache 2.2. We're not ready to upgrade to 2.4 yet, but I'd still like to have granular timestamps.

Is there a way of getting this functionality in Apache 2.2?

share|improve this question

The documentation says this feature should exists in apache 2.2

%{format}t  | The time, in the form given by format, which should be in strftime(3) format. (potentially localized)

take a look at

share|improve this answer
But, as I read it, nothing in strftime suggests it offers sub-second timing. – MadHatter Mar 19 '14 at 8:09
both documentations talk about strftime(3) formatation, so they should support the same tokens. maybe you should simply try it in apache 2.2. – Radon8472 Mar 19 '14 at 8:15
The Apache 2.4 docs say 'In addition to the formats supported by strftime(3), the following format tokens are supported:', and goes on to list msec_frac. – Flup Mar 19 '14 at 8:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.