-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solr response logs are truncated after ~500 characters #26
Comments
On Thu, Oct 16, 2014 at 3:02 PM, Scott Smerchek [email protected]
Certainly. How about a logLimit request parameter (or can you think of a -Yonik |
I can see how 1000s of terms being printed in the logs would be overkill. We would even probably ignore those, too. Yes, I like the idea of a As for the truncating part, it should be careful to maintain the log format. For example, a non truncated log looks like
but the truncated log looks like
It should finish the
|
OK, I've committed support for a request parameter called "logLimit" that limits the size of any given request parameter. This way, at least the start of all request parameters are still displayed. This also fixes the parse-ability issues you highlighted. Example: I also optimized the logging in a number of ways, including avoiding multiple string creations (just to pre-pend a "{" for example), and avoiding doing any work whatsoever if it won't be logged anyway. A logLimit of -1 means "don't limit". |
Did you accidentally remove 'status' and 'QTime' from the logs with this commit? Because they are no longer contained in the log output, only 'hits' is present. |
Hmmm, you're right... looks like they were accidentally removed. |
It appears this change was made uniquely for heliosearch as part of the following commit. As we recently upgraded from Solr to Heliosearch, this was a surprise for us. We rely on the full list of parameters to exist in our logs so we get the full context of whats going on. In addition, we use tools like logstash to parse the logs and get a picture of what parameters are being used over time.
c7ca813#diff-06fb971739c227bdf836946417f4da9cR243
Was there a compelling reasons to do this? If so, would it be possible to make this configurable?
The text was updated successfully, but these errors were encountered: