I run into the same problem, but found a workaround. I'm currently testing on a docker image of SQL Server 2022
select @@version
Microsoft SQL Server 2022 (RTM) - 16.0.1000.6 (X64) Oct 8 2022 05:58:25 Copyright (C) 2022 Microsoft Corporation Developer Edition (64-bit) on Linux (Ubuntu 20.04.5 LTS) <X64>
But I had the problem also on other versions (windows based, SQL Server 2019, ...) I think the main problem is Management Studio, I'm running
SQL Server Management Studio 19.0.20209.0+f9a9d8f6
Microsoft .NET Framework 4.0.30319.42000
Operating System 10.0.19045
If I try to consult the audit with the SSMS viewer, I get the same error message as described above. But good news: I can read the log via sys.fn_get_audit_file
:
select *
from sys.fn_get_audit_file('/tmp/*.sqlaudit', default, default)
(I placed my audits in /tmp on this linux image for this demo)