Sorry -- I also meant to mention that I set `logParamsList=json` but that 
didn't work because I think it's looking for a "&json=... GET parameter.

> On 23 Jun 2025, at 10:14, Mikhail Khludnev <m...@apache.org> wrote:
> 
> Hi,
> It seems like it works by design. see
> https://github.com/apache/solr/blob/e17078a98a8ebea1a28853d02527f4dc81da4d6b/solr/core/src/java/org/apache/solr/core/SolrCore.java#L2932
> It logs only query string params if logParamsList is absent, and
> perhaps you'll get all json request logged if set logParamsList=json see
> https://github.com/apache/solr/blob/e17078a98a8ebea1a28853d02527f4dc81da4d6b/solr/core/src/java/org/apache/solr/request/json/RequestUtil.java#L182
> but I'm not sure whether it works as you need.
> 
> On Mon, Jun 23, 2025 at 10:07 AM Andrew Hankinson
> <andrew.hankinson@rism.digital> wrote:
> 
>> Hello,
>> 
>> I am on Solr 9.8.1 in standalone mode, and I'm trying to debug a number of
>> slow queries.
>> 
>> We've implemented almost all of our searches using the JSON Request API,
>> https://solr.apache.org/guide/solr/latest/query-guide/json-request-api.html
>> 
>> However, in the logs, and in the slow query logs, the JSON Request API
>> search parameters do not appear:
>> 
>> 2025-06-23 06:40:36.284 WARN  (qtp1844334363-624-null-177821) [c: s: r:
>> x:core_name t:null-177821] o.a.s.c.S.SlowRequest slow: webapp=/solr
>> path=/select params={} hits=0 status=0 QTime=16914
>> 
>> You can imagine this makes it difficult to tell what is causing the
>> problem!
>> 
>> I've looked around and couldn't really find anything. I'm hesitant to use
>> the "logParamsList" query parameter since I would have to 'opt-in' to quite
>> a big list of query parameters. I've also tried enabling the "temporary"
>> logging, but I think there's a bug with enabling these in standalone mode?
>> I get an error "Parameter nodes only supported in Cloud mode".
>> 
>> Is there a secret incantation that would help here?
>> 
>> Thanks,
>> -Andrew
> 
> 
> 
> -- 
> Sincerely yours
> Mikhail Khludnev

Reply via email to