Changing logs to alerts