The csv output plugin allows alert data to be written in a format easily importable to a database. The output fields and their order may be customized.