SQL Server Audit Event Log -
SQL Server Audit Event Log -
i'm struggling audit working using application logs on sql server 2012 based upon various responses i've found here , microsoft's documentation. test, executed next script in management studio , reported success. however, when deliberately fail login, don't see records appearing in os log.
use master go create server audit auditdataaccess application_log go create server audit specification hippa_audit_specification server audit auditdataaccess add together (failed_login_group) (state = on) go alter server audit auditdataaccess (state = on) go
clarifying: works if set output file instead of os log. if create object this:
create server audit auditdataaccess file ( filepath ='c:\sqlaudit\' ) go
...it works , can retrieve info using:
select * sys.fn_get_audit_file ('c:\sqlaudit\auditdataaccess_*.sqlaudit',default,default); go
what doing wrong regard using os application log?
edit: if nothing, looking in wrong place? brought windows 7 eventviewer , looked in each subtree of event viewer (local)/windows logs. looked in event viewer (local)/applications , service logs, don't see entry sql server beyond empty "microsoft-sqlserverdatatools".
it should under event viewer / windows logs / application, event id 33205.
understanding audit logging in sql server 2008
"any authenticated user can read , write windows application event log. application event log requires lower permissions windows security event log , less secure windows security event log." - sql server audit
sql sql-server logging audit
Comments
Post a Comment