Apache log meaning of %T and %D

10,172

The documentation you mentioned was about Apache 1.3. Lots of things have changed since then and Apache 2 has been around for quite some time. From Apache 2.1 mod_log_config Documentation:

%D: The time taken to serve the request, in microseconds.

%T: The time taken to serve the request, in seconds.

Share:
10,172

Related videos on Youtube

Amit Kumar Gupta
Author by

Amit Kumar Gupta

I am Research Enthusiast working as a full time opensource developer. I used to develop general and generic applications which can give better performance with fewer resources. I am a greedy programmer who likes creative things.

Updated on September 18, 2022

Comments

  • Amit Kumar Gupta
    Amit Kumar Gupta almost 2 years

    As per the Apache docs, %T means the time taken to serve the request, in seconds. But there is no description about %D.

    In configuration file, %T %D is written last (in LogFormat). Where in the log file, 0 is being printed in place of %T (always) and some numeric value >10000 in place of %D.

    I believe that the response time must not be greater than 2-3 seconds in my case.

    • So please tell me which entry belongs to response time
    • Why is 0 being printed in place of %T?
    • What is the meaning of %D?
  • Admin
    Admin about 13 years
    @Salman, The same link i suggessted in the question
  • Button
    Button about 13 years
    @article: no... its 2.1 instead of 1.3.
  • Button
    Button about 13 years
    @article: your webserver is apache 2.0 or later, right?