Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Tomcat
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework
this week in the
Java in General
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Tomcat
Tomcat 404 - how to log bad url?
M Conlin
Greenhorn
Posts: 15
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I want to capture the bad URL when a 404 is thrown.
The only way I do this so far is to have the
tomcat
log4j.properties set to DEBUG, this creates a HUGE amount of logging.
Are there any other ways to get this information... when the URL is bad I want to see what it was they wanted.
Ben Souther
Sheriff
Posts: 13411
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If you turn on access logging (uncomment its entry in server.xml) you'll have a typical log that can be parsed with programs like webalizer.
This has log entries for every hit, including the response code.
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to get the url of the page causing the 404 in custom error.jsp?
Custom 404
custom 404 error page
cannot connect to tomcat
disable tomcat version display
More...