How to monitor zigbee connection?

I am positive that there are many solutions already I just find it hard to search for a proper blueprint. I would like a monitor that scan the zigbee2mqtt “last seen” and “availability” and put in the persistent log any device that is disconnected.
Bonus: if someone could refer me to a better way searching for blueprints it will be wonderful.

Hi,
I am using this one:
Offline detection for Z2M devices with last_seen
I am running two instances, at 6am and 6pm, with couple of devices in exclude section (z2m groups).
Best regards.