Computer Tips - How do I show the browser's user agent my Apache access log?
Keywords: navigator.userAgent, HTTP_USER_AGENT
Q. How do I show the browser's user agent my Apache access log?
Change this line:
CustomLog logs/access.log common
CustomLog logs/access.log combined
and restart Apache.
This assumes you have a LogFormat statement this declares the "combined"
format. But that's normally there.
You can also do this on a host-by-host basis if you have virtual hosts.