In our web application, which is deployed on tomcat server inside apache web server, we need to plot some metrics like count of specific API hits and latency on these APIs. In order to achieve it, we need to parse log files using something like grok.
Now, my main concern is understanding difference between apache access log and tomcat access log and choosing one of them. Any incoming request is first logged into apache access log and then tomcat access log. Then what is the difference between them, if there is single tomcat server deployed inside this apache web server. And which is the better candidate?