How to activate all AUDIT system events?
When installing IRIS, all the system AUDIT events are not enabled.
What is the fastest way to activate all events?
System > Security Management > System Audit Events
.png)
Product version: IRIS 2023.2
Discussion (1)0
Comments
To activate all system AUDIT events, simply execute the following SQL query from the namespace %SYS :
update security.events set enabled=1 where flags = 1
example :
set tRes = ##class(%SQL.Statement).%ExecDirect(,"update security.events set enabled=1 where flags = 1")
if tRes.%SQLCODE=0 {
set ^["USER"]TRACE("%SYS Security.Events")=tRes.%ROWCOUNT_" successfully enabled"
} else {
set ^["USER"]TRACE("%SYS Security.Events")=tRes.%Message_" SQLCODE:"_tRes.%SQLCODE
}