Compare two fields in Kibana

Hi, regarding

is this currenly possible to compare values of 2 fields?
like whether the content of field X is different/the same as content of field Y

Hi @cyberzlo

from the linked topic I see your requirement is to perform some data comparison/transformation within Maps.
In recent version a new layer type has been added to Maps with ES|QL (the new ES language) which could help to achieve what you're looking for.

This wasnt my topic, I am not looking for maps :-). I have just aplication logs and want compare values from other documents (other logs entries). Is it possible some normal/easy way without any workarounds?

If it's about Maps you can use Lens formula or ES|QL.
Lens formula introduced a new ifelse function to help with this kind of tasks.

With the new ES|QL language there's an existing case function to achieve the same goal.

Is it possible on Dashboard or Discover - so with filter or KQL?

Where in Lens is this ifelse function?

You can find direction to use Lens formula here: Create visualizations with Lens | Kibana Guide [8.16] | Elastic