Skip to main content
premchanderr
Staff & Editor
Staff & Editor
January 23, 2025

Troubleshooting Tip: FortiSIEM Windows Agent consumes high CPU/Memory on Windows server

  • January 23, 2025
  • 0 replies
  • 2268 views
Description

 

This article describes how to investigate if FortiSIEM Windows Agent spikes high CPU utilization on Windows servers.

 

Scope

 

Windows Agent v4.4.x, v5.x, v7.x.x, v7.1.x, v7.2.x,v7.3.x,v7.4.x,v7.5.x. Supervisor and Collector v6.x, v7.x, v7.1.x, v7.2.x, v7.3.x, v7.4.x, v7.5.x.

 

Solution

 

  1. Verify if high utilization is caused by the FortiSIEM Agent by checking the CPU and Memory Utilization of the FSMLogAgent process on the Windows server Task Manager. 

FSM_High_CPU_Usage.png

 

FortiSIEM Agents are designed to be lightweight and not consume more than 5% of a system's CPU and memory. 

 

  1. Ensure that the system has met the prerequisites defined in the Windows Agent Installation Guide and FortiSIEM Version Compatibility Matrix as per the installed agent version. 

     

  2. On the Windows server, navigate to Windows Event Viewer -> Application, System, and Security logs. Check if any event is generated by the Windows OS. These events are triggered based on the Local Security Policy settings (Control Panel -> System and Security -> Windows Tools). Note that it is possible these settings are managed vía GPO by Windows Server administrators.

     

  3. On the Windows server, navigate to Windows Event Viewer -> Application, System, and Security logs. Assess for any unusually high number of events. In this case, fine-tune the system audit policies and analyze what is triggering such a high event rate. 

     

  4. Investigate from the FortiSIEM Analytics tab to find out which event type has the maximum count.

     

Run a historical search for 10 minutes or 1 hour:

 

Filters: Reporting IP = <Windows-IP> AND System Event Category BETWEEN 0,6

Display conditions: Reporting IP , Event Name , Count(Matched Events)

Report_Analytics_Filter.png


Export a 10-60-minute duration report and review.

 

  1. Temporarily exclude the high event type eventID from the Windows Agent Template and click Apply on Template, to observe if system utilization has restored to normal. Later, evaluate if the event is still required in FortiSIEM or can be reduced on the Windows server.

     

  2. Probe for any errors in Agent logs from the Windows server located in:

C:\ProgramData\FortiSIEM\Agent\Logs\FSMLogAgent.log
C:\ProgramData\FortiSIEM\Agent\Logs\Trace.log
C:\Program Files\Fortinet\FortiSIEM\logs\cms.log

 

  1. Probe for any errors in FortiSIEM collector logs, phAgentManager process:


cat /opt/phoenix/log/phoenix.log | grep -i phAgentManager

 

  1. Inspect the network connectivity between the Windows server and the collector for any latency. 

     

  2. Verify if large events are cached on the Windows server. The cache for the Windows agent is stored in the following directory: 

C:\ProgramData\AccelOps\Agent\Database\AoWinAgt.db

  1. For Windows Agent v5.0.0 or later, ensure the following are whitelisted in antivirus software, or it may result in high CPU and memory usage, and can significantly slow down the machine.

c:\Program Files\Fortinet\FortiSIEM\certs.pem
c:\Program Files\Fortinet\FortiSIEM\cn.bat
c:\Program Files\Fortinet\FortiSIEM\fins.xml
c:\Program Files\Fortinet\FortiSIEM\FortiSIEM.Common.dll
c:\Program Files\Fortinet\FortiSIEM\FortiSIEM.Security.dll
c:\Program Files\Fortinet\FortiSIEM\FortiSIEM.Utilities.dll
c:\Program Files\Fortinet\FortiSIEM\FortiSIEM.Utilities.manifest
c:\Program Files\Fortinet\FortiSIEM\FortiSIEM.WebProxy.dll
c:\Program Files\Fortinet\FortiSIEM\FortiSIEM.WebProxy.manifest
c:\Program Files\Fortinet\FortiSIEM\FortiSIEM.WinRTWrapper.dll
c:\Program Files\Fortinet\FortiSIEM\FSMLogAgent.exe
c:\Program Files\Fortinet\FortiSIEM\FSMLogAgent.exe.config
c:\Program Files\Fortinet\FortiSIEM\License_3rd_party.txt
c:\Program Files\Fortinet\FortiSIEM\log4net.config
c:\Program Files\Fortinet\FortiSIEM\log4net.dll
c:\Program Files\Fortinet\FortiSIEM\monitorStatus.xml
c:\Program Files\Fortinet\FortiSIEM\osquery.exe
c:\Program Files\Fortinet\FortiSIEM\data\*
c:\Program Files\Fortinet\FortiSIEM\logs\*
c:\ProgramData\FortiSIEM\Database\*
c:\ProgramData\FortiSIEM\Logs\*
c:\Windows\System32\drivers\FortiInsight.sys

 

If the issue persists, contact Fortinet Support (Support) with all of the above details. 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT