An enhancement in UMP (USM) 7.6 supports this function out of the box.
As of 7.6 historical alarms can be exported to a .csv file.
Export Historical Alarms to CSV
You can export a list of historical alarms to a .csv file for the selected group or system. Historical alarms are alarms that are current or closed for the selected group or system.
To export a list of historical alarms, click on the Actions menu above the list or table, and select Export historical alarms. A dialog opens on your local system, prompting you to select a location to save the .csv file to.