Audit settings and support on sqlserver Azure linux

helena Matos 61 Reputation points
2020-11-25T14:59:11.6+00:00

Hello
Is there any limitations on Azure sqlserver linux for audit?
im trying to setup audit all, and I cant
i can only seem to get working audit failures
LGIF LOGIN FAILED = Works
LGIS LOGIN SUCCEEDED = I cant get it to work

thank you!

SQL Server on Azure Virtual Machines
SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. helena Matos 61 Reputation points
    2020-11-27T02:07:58.437+00:00

    i found the problem - sqlserver audits are not supported for Linux

    however these are the selects

    SELECT GETDATE();

    SELECT
    event_time AS Login_Time,
    server_instance_name ,
    statement AS Description
    FROM sys.fn_get_audit_file('/backup/audit/*.sqlaudit', DEFAULT, DEFAULT)
    WHERE
    action_id = 'LGIF'

    go

    SELECT GETDATE();

    SELECT
    event_time AS Login_Time,
    server_instance_name ,
    statement AS Description
    FROM sys.fn_get_audit_file('/backup/audit/*.sqlaudit', DEFAULT, DEFAULT)
    WHERE
    action_id = 'LGIS'

    go


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.