You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/sql/database-engine/startup-shutdown/error-17156-event-log-service.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,26 +27,38 @@ Developer Edition (64-bit) on Windows Server 2025 Datacenter 10.0 <X64> (Build 2
27
27
28
28
This error can occur when the SQL Server Agent doesn't have access to write to the Application event log. During startup, the SQL Server Agent attempts to register its own event source to the Application event log, but without write access, registering the event source fails. When SQL Server Agent fails to register the event source, the startup process terminates.
29
29
30
-
An incorrect configuration in the **Configure log access** group policy can prevent the SQL Server Agent from writing to the Application event log. If the **Configure log access** policy doesn't grant write access to the account the SQL Server Agent runs under, the agent fails to start.
30
+
An incorrect configuration in the **Configure log access** group policy can prevent the SQL Server Agent from writing to the Application event log. If the **Configure log access** policy doesn't grant write access to the account used by the SQL Server Agent, the agent fails to start.
31
31
32
32
This error can appear after installing or upgrading to Windows Server 2022 or 2025, because of a change to how the **Configure log access** policy is enforced. In Windows Server 2019 and previous versions, the **Configure log access** policy wasn't correctly enforced. The SQL Server Agent would be able to write to the Application event log even without being granted access via the group policy. In Windows Server 2022 and later versions, the **Configure log access** policy is correctly enforced. The SQL Server Agent can't write to the Application event log unless properly configured in the group policy.
33
33
34
34
## Solution
35
35
36
-
This error can be resolved by either disabling the **Configure log access** group policy or updating it to grant write access to the account the SQL Server Agent runs under.
36
+
This error can be resolved by either disabling the **Configure log access** group policy or updating it to grant write access to the account used by the the SQL Server Agent.
37
37
38
-
First, find the **Configure log access** policy settings:
38
+
First, locate the **Configure log access** policy settings:
39
39
40
40
1. Open the Local Group Policy Editor.
41
+
42
+
:::image type="content" source="./media/error-17156-event-log-service/group-policy-editor.png" alt-text="Screenshot of the Local Group Policy Editor":::
:::image type="content" source="./media/error-17156-event-log-service/event-log-service-policies.png" alt-text="Screenshot of the Local Group Policy Editor with the Application folder selected":::
47
+
42
48
1. Open the **Configure log access** setting.
43
49
50
+
:::image type="content" source="./media/error-17156-event-log-service/configure-log-access-setting.png" alt-text="Screenshot of the Configure log access settings window":::
51
+
44
52
To disable the policy, set its value to either **Disabled** or **Not Configured**.
45
53
46
-
To update the policy, set its value to **Enabled**. Then, append the following to the Security Descriptor Definition Language (SDDL) string in the **Options** panel:
54
+
:::image type="content" source="./media/error-17156-event-log-service/disable-log-access-policy.png" alt-text="Screenshot of the Configure log access settings window with the Disabled setting selected":::
55
+
56
+
To update the policy, append the following to the Security Descriptor Definition Language (SDDL) string in the **Options** panel:
47
57
48
58
> (A;;0x7;;;\<SQL-Server-Agent-Account-SID\>)
49
59
60
+
:::image type="content" source="./media/error-17156-event-log-service/update-log-access-policy.png" alt-text="Screenshot of the Configure log access settings window with the additional Security Descriptor Definition Language (SDDL) string appended in the Options panel":::
61
+
50
62
## References
51
63
52
64
-[How to set event log security locally or by using Group Policy](~/windows-server/group-policy/set-event-log-security-locally-or-via-group-policy.md)
0 commit comments