Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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 http://httpd.apache.org/docs/2.2/mod/mod_log_config.html.

share|improve this answer
    
But, as I read it, nothing in strftime suggests it offers sub-second timing. –  MadHatter Mar 19 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 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 at 8:16

Your Answer

 
discard

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.