How to Increase Event Log Size on Windows Server

Planted .

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

Updated . Thoughts? Email me.