Skip to content

Commit 45c85e1

Browse files
committed
add screenshots
1 parent 2aa4488 commit 45c85e1

6 files changed

Lines changed: 16 additions & 4 deletions

File tree

support/sql/database-engine/startup-shutdown/error-17156-event-log-service.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,38 @@ Developer Edition (64-bit) on Windows Server 2025 Datacenter 10.0 <X64> (Build 2
2727

2828
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.
2929

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.
3131

3232
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.
3333

3434
## Solution
3535

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.
3737

38-
First, find the **Configure log access** policy settings:
38+
First, locate the **Configure log access** policy settings:
3939

4040
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":::
43+
4144
1. Select **Computer Configuration** > **Administrative Templates** > **Windows Components** > **Event Log Service** > **Application**.
45+
46+
:::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+
4248
1. Open the **Configure log access** setting.
4349

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+
4452
To disable the policy, set its value to either **Disabled** or **Not Configured**.
4553

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:
4757

4858
> (A;;0x7;;;\<SQL-Server-Agent-Account-SID\>)
4959
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+
5062
## References
5163

5264
- [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)
327 KB
Loading
148 KB
Loading
206 KB
Loading
97.6 KB
Loading
155 KB
Loading

0 commit comments

Comments
 (0)