You can accomplish this by using the Combined Log Format rather than the default Common Log Format. In your Apache configuration files, search for the CustomLog keyword, and modify it to look like the ...
logresolve is a post-processing program to resolve IP-addresses in Apache's access logfiles. To minimize impact on your nameserver, logresolve has its very own internal hash-table cache. This means ...