How to increase event log size on Windows server

Last updated:

#WINDOWS

Through GPO

  1. Computer Configuration\Administrative Templates\Windows Components\Event Log Service\
    1. Subordinate folders exist by default, select the appropriate one and set the max log size

PowerShell override

wevtutil sl Security /ms:3145728

How to check log size

wevtutil gl Security | findstr /i "maxSize"

references:

Event Log | Microsoft Learn