I cant seem to figure out how to make Solr log all bad resuests - Basically whenever a bad URL comes in, say, a request on a requesthandler that does not exist like qt=unknownhandler
, I need to log it.
I can see the Solr startup logs and exception logs in my log file, but NOT the bad requests.
Im logging using JDK4 java.util.Logging and solr uses slf4j and slf4j-jdk internally, My tomcat_dir/conf/logging.properties looks like this:
5SOLR.org.apache.juli.FileHandler.level = ALL
5SOLR.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
5SOLR.org.apache.juli.FileHandler.prefix = SOLR.
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr].level = ALL
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr].handlers = 5SOLR.org.apache.juli.FileHandler
and I have added 5SOLR.org.apache.juli.FileHandler to the set of handlers. Why is it that I CANNOT see the Bad requests, while I CAN see these kind of logs :
Sep 7, 2011 12:49:04 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Sep 7, 2011 12:49:04 PM org.apache.catalina.session.StandardSession readObject
FINE: readObject() loading session C8A52B935A03A78BEC4A799119A79B49
Sep 7, 2011 12:49:04 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Sep 7, 2011 12:49:04 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filter 'SolrRequestFilter'