limit alarm messages to 1024 characters