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.

is there any way to grab REQUEST variables as well as other apache information for each request processed? This would especially be handy through a load balancer and proxy as well in order to track each step of the process to an end web server.

share|improve this question

2 Answers 2

You can view the apache log file as it grows at real time by executing the following command

tail -f /var/log/httpd/access.log

This shows all the lines being appended to log file at that particular time.

or follow the link

http://atoztechnical.blogspot.com/2010/08/how-to-view-log-file-as-it-grows-at.html

share|improve this answer

Adjusts the verbosity of the messages -Apache doc -LogLevel. You can do it in global config in httpd.conf. Or per VHost inside of VirtualHost directive (this way you will be able to configure additional log files using ErrorLog and TransferLog directives).

If you like, you can modify log format, like shown here. By using %r you are able to get the text of the original request line along with HTTP method used.

Then restart/reload apache and try:

tail -f /var/log/httpd/logfile

share|improve this answer

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.