Posts: 64
Registered: ‎01-19-2017

Logging solr request querires

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.






Cloudera Employee
Posts: 25
Registered: ‎08-22-2014

Re: Logging solr request querires

The only current way to log solr request queries is:


Please set 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