- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Logging solr request querires
- Labels:
-
Apache Solr
Created on 07-28-2017 05:40 AM - edited 09-16-2022 04:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 08-01-2017 10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
