How to export alerts to CSV?