No, Solr can't do that unless you patch it to only log top-level queries. As said, sharded queries are easy to filter, look for isShard=true parameters to distinguish them. They usually also contain more parameters than the original top-level query.
Op vr 23 sep. 2022 om 10:42 schreef Anjali Maurya <anjali.maury...@indiamart.com.invalid>: > So, we are searching for any solution to log only top level queries. Is > there any way at logging level to log only top level query? > > > On Fri, Sep 23, 2022 at 2:09 PM Anjali Maurya < > anjali.maury...@indiamart.com> > wrote: > > > We have a way to distinguish which query is a top level query. > > We are using an 8-node cluster of solr cloud, when any request is hit > then > > min 9 and max 17 queries are being logged. It is consuming huge disk > space. > > When we used to use solr standalone , log files used to be generated of > > ~30GB per day and now with solr cloud , the log file's size has increased > > to ~162GB. > > > > On Thu, Sep 22, 2022 at 10:31 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 > >> > >> >