Note that there are some explanatory texts on larger screens.

plurals
  1. POJava/Tomcat standalone, how to log/access all the HTTP GET requests
    text
    copied!<p>I'm running Tomcat in standalone mode. The "standalone" part is very important: I am <em>not</em> going to install Apache in front of Tomcat.</p> <p>In my question here, about how to implement a "web bug", I got a great answer: <a href="https://stackoverflow.com/questions/3011876">Java webapp: how to implement a web bug (1x1 pixel)?</a></p> <p>However the answer states:</p> <blockquote> <p>In your access logs, you can count for your jpg - the output should be"</p> <p>127.0.0.1 - - [10/Jun/2010:11:38:53 +0530] "GET /mywebapp/jsp/invisible.jpg?1276150133362 HTTP/1.1" 200 991</p> </blockquote> <p>But, as I feared, I cannot find such logs.</p> <p>... $ <strong>cat apache-tomcat-6.0.26/logs/* | grep GET | wc -l</strong></p> <p>0</p> <p>There are a lot of logs. My webapp's custom logs are definitely logged.</p> <p>So I've got a few related questions:</p> <ul> <li><p>Does "Tomcat standalone" log every HTTP GET request by default?</p></li> <li><p>If yes, where are every HTTP GET requests logged by default? (how could I have found them myselves?)</p></li> <li><p>If no, can "Tomcat standalone" be configured to log every HTTP GET request?</p></li> </ul> <p>Note that I know that in my case I can add custom logging alongside with my web bug <em>.jsp</em> and search for that in the logs, but that is not my question here.</p> <p>My question here is really about how Tomcat standalone (once again, the standalone is very important) deals with logging of all the HTTP GET requests.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload