Track down responsible queries for deprecation warnings

Hello,

we want to finally upgrade our cluster to version 8. According to the Upgrade Assistant in Kibana, we only need to check the deprecation logs.

In these I find something like this

[2023-06-30T14:36:47,251][CRITICAL][o.e.d.i.m.IdFieldMapper ] [es-node-01] Loading the fielddata on the _id field is deprecated and will be removed in future versions. If you require sorting or aggregating on this field you should also include the id in the body of your documents, and map this field as a keyword field that has [doc_values] enabled

The problem now is: How do I find out which queries exactly are responsible for the problem? Is there any way to find out? We have many services where Elasticsearch queries are dynamically assembled, so basically they all come into question. I really hope there is an easier way than checking them all individually.

I would be very grateful for tips and ideas!

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