Windows Server 2025 - Cannot change log file path for Microsoft-Windows-Security-Auditing (Security.evtx)

liang xu 0 Reputation points
2026-11-24T14:06:32.2833333+00:00
Question:
I am trying to change the output file path of the Microsoft-Windows-Security-Auditing security channel on Windows Server 2025, but the setting does not take effect. The security events keep writing to the default path:
C:\Windows\System32\Winevt\Logs\Security.evtx

Steps I have performed:
1. Modified the legacy registry value:
HKLM:\SYSTEM\CurrentControlSet\Services\EventLog\Security\File
Set it to a valid NTFS destination path (both drive letter K: and Volume GUID format \\?\Volume{GUID}\... were tested).
2. Updated the channel logFileName using wevtutil sl Security /lfn:"<target-path>".
3. Verified ACL: NT SERVICE\EventLog has FullControl permission on the target folder.
4. Confirmed the target volume is NTFS and not compressed.
5. Performed full shutdown and cold boot multiple times.
6. Confirmed no GPO overrides via gpresult /r. This is a standalone server with no domain or local GPO enforcing the security log path.
7. As a comparison test: System and Application channels CAN be successfully moved to the same target location with identical steps.

I would like to clarify the following:
1. Is changing the log file path for the Microsoft-Windows-Security-Auditing security channel officially supported on Windows Server 2025?
2. If this configuration is unsupported, please provide the official documentation reference or statement.
3. If it is supported, please provide the correct procedure that works on Windows Server 2025.

Thank you.

Windows for business | Windows Server | User experience | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Vasileios Dionysopoulos 826 Reputation points
    2026-11-24T18:42:26.1566667+00:00

    Hi Liang,

    Yes, it's supported. Microsoft ships a policy setting specifically for this: Control the location of the log file under Computer Configuration > Administrative Templates > Windows Components > Event Log Service > Security (documented as Channel_LogFilePath_2 in the Policy CSP – ADMX_EventLog).

    That policy writes to HKLM\Software\Policies\Microsoft\Windows\EventLog\Security, and a value there overrides both wevtutil sl and the legacy Services\EventLog\Security\File value. gpresult /r won't show it if it was left behind by a baseline or a hardening script, so check the key directly:

    Get-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\EventLog\Security" -ErrorAction SilentlyContinue
    Get-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\EventLog\System"   -ErrorAction SilentlyContinue
    wevtutil gl Security | Select-String logFileName
    

    If Security has a File value pointing to the default path (and System has none), that's why only the Security log refuses to move.

    Procedure that sets it the supported way (standalone server, so local policy):

    1. gpedit.msc → the path above → Control the location of the log file → Enabled → enter the full path, e.g. K:\EventLogs\Security.evtx.
    2. gpupdate /force, then restart.
    3. Verify with wevtutil gl Security. The logFileName should show the new path, and new events should land there.

    Keep the folder's ACL tight (SYSTEM, Administrators, NT SERVICE\EventLog): the policy description itself says the location "should only be accessible to administrators".

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.