Meta fields in a query

Hi,

I am trying to isolate application flows that cause slow queries that are being logged in the slow log.
Many of our search requests are very similar and it is hard to figure out which user was performing what action leading to the slow query.

I was wondering if there is support for passing in a field as part of the query itself. The field would be returned in the response as is. Sort of a meta field that is not used by the query engine but still is part of the query and is logged in the slow log.

I tried setting a name on the query, but it had an adverse impact on performance.

Any suggestions ?

Thanks in advance.

-RaviShekhar

See the section about slow log origin in the docs Slow Log | Elasticsearch Guide [7.14] | Elastic

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.