Query to get from system log all failed emails?

Hi all,

IF I go from the GUI under System - Log of events I can filter for example with the sentence “Failed sending message” to get many results like:

54126390	20 November 2023 13:00:56	Failed sending message 2791 to arandomemail@gmail.com

Is it possible to export those entries (ideally only the email) with a query from the DB or with any other way?

Thanks in advance.