Which of the following is the primary function of a Security Information and Event Management (SIEM) system?