Supposing that you have enabled virtual hosts for all the sites, you could make use of Apache's advanced logging mechanism.
For instance, this ServerFault comment gives an example, by using Apache's %I and %O flags.
Check the full reference of Apache's supported log flags here.
An alternative approach, and easier to implement, consists of using an external service such as Google Analytics although you might not get all of the information.
I hope it helps!