Support Questions

Find answers, ask questions, and share your expertise

Logging solr request querires

avatar
Expert Contributor

Is that Solr providing any option to write all the user search queries into files.

 

I have to log only queries run by users so that I can process on then to know what users is searching

 

I want to take all user request query to build a report.

 

 

 

 

 

1 REPLY 1

avatar
Rising Star

The only current way to log solr request queries is:

 

Please set log4j.logger.org.apache.solr.core.SolrCore.Request=DEBUG to show queries before they are executed. Add this snippet to:

Cloudera Manager --> Solr --> Configuration --> Solr Server Logging Advanced Configuration Snippet (Safety Valve)

If this is set, queries will show a DEBUG log entry before they are executed, then an INFO with qtime and numDocs returned