I’ve always used the HTTP (access) log. In that, queries to shards are POST 
requests, so if the external requests are all GET, they are easy to sort out. 

wunder
Walter Underwood
https://observer.wunderwood.org/ 

> On Sep 22, 2022, at 7:02 PM, Shawn Heisey <apa...@elyograg.org.invalid> wrote:
> 
> On 9/22/22 09:17, Anjali Maurya wrote:
>> Thanks Shawn for the suggestion.
>> Can we make any change for the logging of only top level query not the
>> shard level?
> 
> I just tried doing a query on my tiny 9.1.0-SNAPSHOT SolrCloud install that 
> consists of one node, one shard, and one core, with ZK embedded.  The query 
> was to the collection, not the core.  I expected to see two queries logged 
> ... one for the collection and one for the core.  I only got one query 
> logged, on the core.
> 
> I know that when doing a sharded query that does NOT involve SolrCloud, that 
> both queries are logged.  I am pretty sure that when both queries are logged, 
> it is not difficult to figure out which log entry is for a top level query.
> 
> Thanks,
> Shawn
> 

Reply via email to