[ https://issues.apache.org/jira/browse/SOLR-17794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17985632#comment-17985632 ]
Mikhail Khludnev commented on SOLR-17794: ----------------------------------------- a tech note Params are loaded into req.toLog here [1] that's happened before stream body is parsed and json is inserted as json param at [2] [1] https://github.com/apache/solr/blob/e17078a98a8ebea1a28853d02527f4dc81da4d6b/solr/core/src/java/org/apache/solr/core/SolrCore.java#L2916 [2] https://github.com/apache/solr/blob/b76a29d17c874806e3b6516810772e2238e93098/solr/core/src/java/org/apache/solr/handler/RequestHandlerBase.java#L235 > Logging JSON Request API parameters > ----------------------------------- > > Key: SOLR-17794 > URL: https://issues.apache.org/jira/browse/SOLR-17794 > Project: Solr > Issue Type: Bug > Components: JSON Request API, logging > Affects Versions: 9.8.1 > Environment: Solr 9.8.1, Ubuntu 22.04 > Reporter: Andrew Hankinson > Priority: Major > > When using the JSON Request API, there seems to be no way to enable logging > of the request parameters. This was discussed recently on the Solr users list. > Unlike the "old" request API that uses the GET parameters for queries, the > JSON Request API uses query parameters passed in the body of a POST command. > This means that the log messages that use the JSON Request API, despite > having search queries executed with the request, produces log messages like > this: > {code:java} > 2025-06-23 07:05:48.036 INFO (qtp1844334363-56-null-95) [c: s: r: > x:core_name t:null-95] o.a.s.c.S.Request webapp=/solr path=/select params={} > hits=99 status=0 QTime=2400 {code} > That is, the "params" element is always empty. > Furthermore, even if this isn't desirable as the default behaviour, there > seems to be no way to turn it on in. This makes debugging slow queries quite > difficult, since it cannot be reproduced. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org