SQL Server Login Auditing

Gav 1 Reputation point
2020-08-26T15:36:50.573+00:00

Hi, 
Is there a way to check the active audit level setting on a SQL Server since it can be changed multiple times without restarting the service.  
This is Login Auditing in Server Properties. Via GUI or reading the registry tells me what is set but not what is active.
thanks

SQL Server Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Cris Zhan-MSFT 6,661 Reputation points
    2020-08-27T05:48:11.387+00:00

    Hi,

    Please check:
    Viewing SQL Server Audit Logs

    How to analyze and read SQL Server Audit information

    ===============================================

    If the response helped, do "Accept Answer" and upvote it.


  2. Cris Zhan-MSFT 6,661 Reputation points
    2020-08-28T08:06:25.91+00:00

    Hi,

    Thanks for your reply. Sorry for my misunderstanding.

    I tested this ,It is true that the changes made to this setting in the GUI or registry will not work before the SQL Server services restart. The login information recorded in the Errorlog is still based on the settings at this startup.(And the 1 = Successful Logins Only.)

    The active setting --- Maybe it can be judged from Errorlog .

    The setting for login auditing is actually a registry entry and SQL Server only reads this setting when the SQL Server service starts up

    ===============================================
    If the response helped, do "Accept Answer" and upvote it.


  3. Gav 1 Reputation point
    2020-09-11T09:17:50.14+00:00

    Hi,
    Thanks for the response.
    If it can only be judged from the ErrorLog, maybe a possible future feature request for this functionality?

    0 comments No comments

Your answer

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