Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5975295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:03:52+00:00 2026-05-22T21:03:52+00:00

While I can get microsecond resolution on the time taken to process a request

  • 0

While I can get microsecond resolution on the time taken to process a request (%D) to help reconstruct the sequence of requests I would like to look at this in relation to the times of multiple requests generated by a particular page. However as far as I can tell, the %t specifier only provides accuracy to the nearest second. Which makes it impossible to reconstruct the original sequence of events.

Is there another way to get this information in my access_log files?

TIA

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:03:53+00:00Added an answer on May 22, 2026 at 9:03 pm

    Unfortunately, no. This got covered a while back (How to timestamp request logs with millisecond accuracy in Apache 2.0), and it’s still true for the most recent stable (2.2.x) Apache branch.

    I know of at least one workaround, though, if you’re interested: You can pipe Apache’s logs to an external process (see the docs page at http://httpd.apache.org/docs/current/mod/mod_log_config.html, under the “CustomLog” directive) which would add timestamps and actually write to the log file.

    Note that this method does NOT capture the true request RX time. Apache doesn’t output an access log entry until AFTER it’s completed sending its response. Plus, there’s an additional variable delay while Apache writes into the pipe and your timestamper reads from it (possibly including some buffering, there). If you turned on Apache’s “BufferLogs” directive, there’s going to be more variable buffering delay. When the system is under load, and perhaps in other edge cases, the average delay could easily grow to a second or more.

    If the delays aren’t too bad (i.e., “BufferedLogs off”, low system load), you can probably get a pretty tight estimate by subtracting the “%D” value from your external timestamp.

    Some people (including me) pipe Apache’s access logs to the local Syslog daemon (via the ‘logger’ command or whatever). The syslog daemon takes care of timestamping, among other things.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I get merged cells in some rows while other rows cells remain not
How can I get page faults statistics from kernel for my application while it
After using them a while I can't help but feel that the hoops you're
You can get the same output with for and while loops: While: $i =
I've learn a while ago on StackOverflow that we can get the instance ID
I have a process that can get stuck in an infinite loop and I
While I can't get my desktop, running Win7 64, to connect to our network
I'm trying to display an image while a sound is playing. I can get
I hope the question police have something better to do while I can get
While I can get a list of pages within a specific category using 'categorymembers',

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.