Skip to content

Commit ab86263

Browse files
authored
Merge pull request #8829 from Deland-Han/cmpy-branch-ci5577
AB#5577: How to set event log security locally or by using Group Policy
2 parents e476c7c + 44192ca commit ab86263

File tree

1 file changed

+23
-81
lines changed

1 file changed

+23
-81
lines changed

support/windows-server/group-policy/set-event-log-security-locally-or-via-group-policy.md

Lines changed: 23 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Set event log security locally or via Group Policy
33
description: This article provides the methods to set event log security access rights.
4-
ms.date: 01/15/2025
4+
ms.date: 04/29/2025
55
manager: dcscontentpm
66
audience: itpro
77
ms.topic: troubleshooting
@@ -12,9 +12,9 @@ ms.custom:
1212
---
1313
# How to set event log security locally or by using Group Policy
1414

15-
You can customize security access rights to their event logs in Windows Server 2012. These settings can be configured locally or through Group Policy. This article describes how to use both of these methods.
15+
You can customize security access rights to their event logs in Windows. These settings can be configured locally or through Group Policy. This article describes how to use both of these methods.
1616

17-
_Applies to:_   Windows Server 2012 Standard, Windows Server 2012 Datacenter
17+
_Applies to:_   All versions of Windows
1818
_Original KB number:_   323076
1919

2020
## Summary
@@ -26,15 +26,15 @@ You can grant users one or more of the following access rights to event logs:
2626
- Clear
2727

2828
> [!IMPORTANT]
29-
> You can configure the security log in the same way. However, you can change only Read and Clear access permissions. Write access to the security log is reserved only for the Windows Local Security Authority (LSA).
29+
> You can configure the security log in the same way. However, you can change only Read and Clear access permissions. Write access to the security log is reserved only for the Windows Local Security Authority (LSA) and identities that have the **Manage auditing and security log** privilege enabled.
3030
31-
You can use an Administrative Template Policy for the purpose. The path for the System Eventlog, for example, is:
31+
You can use an Administrative Template Policy for the purpose. For example, the path for the System Eventlog is:
3232

3333
> Computer Configuration\Administrative Templates\Windows Components\Event log Service\System
3434
3535
The setting is *configure log access* and it takes the same Security Descriptor Definition Language (SDDL) string.
3636

37-
Microsoft suggests moving to this method once you are on Windows Server 2012.
37+
Microsoft suggests moving to this method.
3838

3939
## Configure event log security locally
4040

@@ -55,87 +55,29 @@ To construct an SDDL string, note that there are three distinct rights that pert
5555
- 2 = Write
5656
- 4 = Clear
5757

58-
The following is a sample SDDL that shows the default SDDL string for the Application log. The access rights (in hexadecimal) are bold-faced for illustration:
58+
The following is a sample SDDL that shows the default SDDL string for the System log. The access rights (in hexadecimal) are bold-faced for illustration:
5959

60-
> O:BAG:SYD:(D;; 0xf0007 ;;;AN)(D;; 0xf0007 ;;;BG)(A;; 0xf0007 ;;;SY)(A;; 0x5 ;;;BA)(A;; 0x7 ;;;SO)(A;; 0x3 ;;;IU)(A;; 0x2 ;;;BA)(A;; 0x2 ;;;LS)(A;; 0x2 ;;;NS)
60+
> O:BAG:SYD:(A;;**0xf0007**;;;SY)(A;;**0x7**;;;BA)(A;;**0x3**;;;BO)(A;;**0x5**;;;SO)(A;;**0x1**;;;IU)(A;;**0x3**;;;SU)(A;;**0x1**;;;S-1-5-3)(A;;**0x2**;;;S-1-5-33)(A;;**0x1**;;;S-1-5-32-573)
6161
62-
For example, the first ACE denies Anonymous Users read, write, and clear access to the log. The sixth ACE permits Interactive Users to read and write to the log.
63-
64-
## Modify your local policy to permit customization of the security of your event logs
65-
66-
1. Back up the %WinDir%\Inf\Sceregvl.inf file to a known location.
67-
2. Open %WinDir%\Inf\Sceregvl.inf in Notepad.
68-
3. Scroll to the middle of file, and then put the pointer immediately before [Strings].
69-
4. Insert the following lines:
70-
71-
> MACHINE\System\CurrentControlSet\Services\Eventlog\Application\CustomSD,1,%AppLogSD%,2
72-
MACHINE\System\CurrentControlSet\Services\Eventlog\System\CustomSD,1,%SysLogSD%,2
73-
74-
5. Scroll to the end of the file, and then insert the following lines:
75-
76-
> AppLogSD="Event log: Specify the security of the application log in Security Descriptor Definition Language (SDDL) syntax"
77-
SysLogSD="Event log: Specify the security of the System log in Security Descriptor Definition Language (SDDL) syntax"
78-
79-
6. Save and then close the file.
80-
81-
7. Select **Start**, select **Run**, type *regsvr32 scecli.dll* in the **Open** box, and then press ENTER.
82-
83-
8. In the **DllRegisterServer in scecli.dll succeeded** dialog box, select **OK**.
62+
For example, the first ACE allows System full control access to the log. The fifth ACE permits Interactive Users to read access to the log.
8463

8564
## Use the computer's local group policy to set your application and system log security
8665

8766
1. Select **Start**, select **Run**, type *gpedit.msc*, and then select **OK**.
88-
2. In the Group Policy editor, expand **Windows Setting**, expand **Security Settings**, expand **Local Policies**, and then expand **Security Options**.
89-
3. Double-click **Event log: Application log SDDL**, type the SDDL string that you want for the log security, and then select **OK**.
90-
4. Double-click **Event log: System log SDDL**, type the SDDL string that you want for the log security, and then select **OK**.
91-
92-
## Use group policy to set your application and system log security for a domain, site, or organizational unit in Active Directory
93-
94-
> [!IMPORTANT]
95-
> To view the group policy settings that are described in this article in the Group Policy editor, first complete the following steps, and then continue to the [Use group policy to set your application and system log security](#use-group-policy-to-set-your-application-and-system-log-security) section:
96-
97-
1. Use a text editor such as Notepad to open the Sceregvl.inf in the %Windir%\Inf folder.
98-
2. Add the following lines to the [Register Registry Values] section:
99-
100-
> MACHINE\System\CurrentControlSet\Services\Eventlog\Application\CustomSD,1,%AppCustomSD%,2
101-
MACHINE\System\CurrentControlSet\Services\Eventlog\Security\CustomSD,1,%SecCustomSD%,2
102-
MACHINE\System\CurrentControlSet\Services\Eventlog\System\CustomSD,1,%SysCustomSD%,2
103-
MACHINE\System\CurrentControlSet\Services\Eventlog\Directory Service\CustomSD,1,%DSCustomSD%,2
104-
MACHINE\System\CurrentControlSet\Services\Eventlog\DNS Server\CustomSD,1,%DNSCustomSD%,2
105-
MACHINE\System\CurrentControlSet\Services\Eventlog\File Replication Service\CustomSD,1,%FRSCustomSD%,2
106-
107-
3. Add the following lines to the [Strings] section:
108-
109-
> AppCustomSD="Eventlog: Security descriptor for Application event log"
110-
SecCustomSD="Eventlog: Security descriptor for Security event log"
111-
SysCustomSD="Eventlog: Security descriptor for System event log"
112-
DSCustomSD="Eventlog: Security descriptor for Directory Service event log"
113-
DNSCustomSD="Eventlog: Security descriptor for DNS Server event log"
114-
FRSCustomSD="Eventlog: Security descriptor for File Replication Service event log"
115-
116-
4. Save the changes you made to the Sceregvl.inf file, and then run the `regsvr32 scecli.dll` command.
117-
5. Start Gpedit.msc, and then double-click the following branches to expand them:
118-
119-
**Computer Configuration**
120-
**Windows Settings**
121-
**Security Settings**
122-
**Local Policies**
123-
**Security Options**
124-
125-
6. View the right panel to find the new Eventlog settings.
126-
127-
### Use group policy to set your application and system log security
128-
129-
1. In the Active Directory Sites and Services snap-in or the Active Directory Users and Computers snap-in, right-click the object for which you want to set the policy, and then select **Properties**.
130-
2. Select the **Group Policy** tab.
131-
3. If you must create a new policy, select **New**, and then define the policy's name. Otherwise, go to step 5.
132-
4. Select the policy that you want, and then select **Edit**.
133-
134-
The Local Group Policy MMC snap-in appears.
135-
136-
5. Expand **Computer Configuration**, expand **Windows Settings**, expand **Security Settings**, expand **Local Policies**, and then select **Security Options**.
137-
6. Double-click **Event log: Application log SDDL**, type the SDDL string that you want for the log security, and then select **OK**.
138-
7. Double-click **Event log: System log SDDL**, type the SDDL string that you want for the log security, and then select **OK**.
67+
2. In the Group Policy Editor, expand the following folder tree under **Computer Configuration** > **Administrative Templates** > **Windows Components** > **Event log Service**.
68+
3. For the example of application eventlog, in the subfolder **Application**, double-click **Configure log access**, select **Enable**, type the SDDL string that you want for the log security, and then select **OK**.
69+
4. It's not necessary to set **Configure Log Access (Legacy)**. The option is for operating systems older than Windows Vista.
70+
71+
## Use group policy to set your application and system log security
72+
73+
1. Start the Group Policy Management Console.
74+
2. Select the OU where the target computers are, or the domain root if you want to define this for all machines in the domain.
75+
3. Select an existing policy to add the permissions to, or create a new policy with the Eventlog access permissions.
76+
4. Right-Click the policy and select **Edit**.
77+
5. The Local Group Policy MMC snap-in appears.
78+
6. Expand **Computer Configuration**, expand **Windows Settings**, expand **Security Settings**, expand **Local Policies**, and then select **Security Options**.
79+
7. Double-click **Event log: Application log SDDL**, type the SDDL string that you want for the log security, and then select **OK**.
80+
8. Double-click **Event log: System log SDDL**, type the SDDL string that you want for the log security, and then select **OK**.
13981

14082
## References
14183

0 commit comments

Comments
 (0)