Creating User-Defined Audit Events programmatically
Hi,
I'm currently looking to deploy a production with readymade auditing functionality. I can currently call user defined audit entries using $SYSTEM.Security.Audit() but I'm finding to display these posts properly I need to create User-Defined Audit Events on the management portal, otherwise they are displayed as "UserEventOverflow"/"AddedUnknownUserEvent" . My question to the community is, is it possible to create the User-Defined Audit Events (found in System > Security Management > User-Defined Audit Events) programmatically (and how can this be achieved) rather than manually creating them on the management portal form?
Thank you in advance :)
Product version: IRIS 2023.1
Discussion (1)1
Comments
You can create User Events using the Security.Events class, with the Create method.
Example:
%SYS>w ##class(Security.Events).Create("Source","Type","Name","Description", 1)