other option is stored your alert file in database and run query against it