Note that there are some explanatory texts on larger screens.

plurals
  1. POSOLR : Logging Bad Requests
    text
    copied!<p>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 <code>qt=unknownhandler</code>, I need to log it.</p> <p>I can see the Solr startup logs and exception logs in my log file, but NOT the bad requests.</p> <p>Im logging using JDK4 java.util.Logging and solr uses slf4j and slf4j-jdk internally, My tomcat_dir/conf/logging.properties looks like this:</p> <pre><code>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 </code></pre> <p>and I have added 5SOLR.org.apache.juli.FileHandler to the set of handlers. Why is it that I <strong>CANNOT</strong> see the Bad requests, while I <strong>CAN</strong> see these kind of logs :</p> <pre><code>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' </code></pre>
 

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