ES|QL LAST function Returns the latest occurrence of a field based on a sort field. - field - The search field - sort Field - The sort field This function calculates the latest occurrence of the search field (the first parameter), where sorting order is determined by the sort field (the second parameter).
