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.

Looking at the access log using "tail". At what point does the log get written to by httpd (I'm on CentOS6.3 if it makes a difference) ?

e.g. When the URL is accessed?, when process is finished and the page delivered? Some other timing?

share|improve this question
    
Run tail -f on the log file and make a request. You'll have your answer fairly quickly. –  Nathan C May 29 '13 at 11:20

1 Answer 1

up vote 1 down vote accepted

Would it be that hard to check? The log entry can't be written until the request completes (since it includes the status, size of response and may include time taken to handle the request).

If the timestamp is when the request starts and you've got requests taking different times to complete, then the times would be out of sequence.

share|improve this answer
    
Snarkiness isn't really required. It really isn't so easy to check as requests come in over the mobile network and I don't know where the delay is. So the log is written to after the request is completed. Thank you. –  paullb May 31 '13 at 2:51

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.