I have two types of binding and control a valve.
One : Direct bind Tag
Audit Events can log the tag write .
Two: Click Script write Tag
Audit Events can't log the tag write .
How to resolve the Two question?
I have two types of binding and control a valve.
One : Direct bind Tag
Audit Events can log the tag write .
Two: Click Script write Tag
Audit Events can't log the tag write .
How to resolve the Two question?
Maybe use system.util.audit to manually log the write to the audit db.
Is there anything I need to set up in Audit?
In Vision I see:
Script in Button - actionPerformed.
It can log it in Audit.
In Perspective Script why not?
system.tag.writeBlocking([tagpath], [value]) ---Can log it in Audit.
system.tag.write(tagpath,value)------Can't log it in Audit.
Looks like everything is set up normally, should be able to just use the function.
system.tag.write
is deprecated and kept around for backwards compatibility. (For updating from V7.x to 8.x) You should only use system.tag.writeBlocking
, even with single tag writes. I bet the older function is missing something that ties it into the audit system but IA would have to confirm.
Perspective scripts run on the gateway. Did you set the Audit profile there?
Security -> General -> Gateway Audit Profile
EDIT: nvm, I don't think that captures it.