Share via

I have setup some SQL Server Audits and Specifications but they are not logging.

Nick Dorgan 0 Reputation points
2024-07-10T02:23:51.8066667+00:00

I have setup some SQL Server Audits and Specifications but they are not logging.

The only Server-Level Audit Action group that log are Batch Started and Batch Completed. I am trying to log to a file, my server is version 2019.

These are the Server-Level Audit Action groups I have tried using, they are listed with the required logging criteria.

Addition of new users, especially privileged users – Captured by Server-Level Audit Action group SERVER_PERMISSION_CHANGE_GROUP, SERVER_OPERATION_GROUP and SERVER_OBJECT_PERMISSION_CHANGE_GROUP

Changes to user roles or privileges  – Captured by Server-Level Audit Action group SERVER_PERMISSION_CHANGE_GROUP, SERVER_OPERATION_GROUP and SERVER_OBJECT_PERMISSION_CHANGE_GROUP

Attempts to elevate user privileges  – Captured by Server-Level Audit Action groups SERVER_PERMISSION_CHANGE_GROUP,               SERVER_OBJECT_PERMISSION_CHANGE_GROUP, DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP, DATABASE_OBJECT_PERMISSION_CHANGE_GROUP,    DATABASE_PERMISSION_CHANGE_GROUP,          SERVER_OBJECT_OWNERSHIP_CHANGE_GROUP

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


1 answer

Sort by: Most helpful
  1. MikeyQiaoMSFT-0444 3,310 Reputation points
    2024-07-10T10:13:03.3433333+00:00

    Hi,Nick Dorgan

    Addition of new users, especially privileged users – Captured by Server-Level Audit Action group SERVER_PERMISSION_CHANGE_GROUP, SERVER_OPERATION_GROUP and SERVER_OBJECT_PERMISSION_CHANGE_GROUP Changes to user roles or privileges  – Captured by Server-Level Audit Action group SERVER_PERMISSION_CHANGE_GROUP, SERVER_OPERATION_GROUP and SERVER_OBJECT_PERMISSION_CHANGE_GROUPSERVER_PRINCIPAL_CHANGE_GROUP

    Hello, the audit specification you are using does not meet your needs. Please use the following specification. Additionally, please refer to the official documentation for audit specifications.SERVER_PRINCIPAL_CHANGE_GROUPSERVER_ROLE_MEMBER_CHANGE_GROUP

    Best Regards,

    Mikey Qiao


    If you're satisfied with the answer, don't forget to "Accept it," as this will help others who have similar questions to yours.

    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.