# Audit logging of system.tag.write\* functions explicitly excluded from perspective?

**URL:** <https://forum.inductiveautomation.com/t/audit-logging-of-system-tag-write-functions-explicitly-excluded-from-perspective/57184>\
**Category:** Ignition\
**Created:** [March 15, 2022, 2:05am UTC](https://forum.inductiveautomation.com/t/audit-logging-of-system-tag-write-functions-explicitly-excluded-from-perspective/57184 "2022-03-15T02:05:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 15, 2022, 2:05am UTC](https://forum.inductiveautomation.com/t/audit-logging-of-system-tag-write-functions-explicitly-excluded-from-perspective/57184/1 "2022-03-15T02:05:52Z")

</div>

A customer has just noticed that some of their operator actions aren't being logged in Perspective clients.

I just confirmed this and it looks like the only actions not working are those using the system.tag.write\* functions (where incidentally, these _do work_ from Vision.  
Looking i the manual, it states this:

* * *

### Vision Scripting

The following functions generate entries in the audit log if called from Vision component-based scripts, or from the Designer's Scripting Console.

- [system.db.execSProcCall](https://docs.inductiveautomation.com/display/DOC81/system.db.execSProcCall)
- [system.db.runPrepUpdate](https://docs.inductiveautomation.com/display/DOC81/system.db.runPrepUpdate)
- [system.db.runUpdateQuery](https://docs.inductiveautomation.com/display/DOC81/system.db.runUpdateQuery)
- [system.tag.writeBlocking](https://docs.inductiveautomation.com/display/DOC81/system.tag.writeBlocking)
- [system.tag.writeAsync](https://docs.inductiveautomation.com/display/DOC81/system.tag.writeAsync)
- [system.report.executeAndDistribute](https://docs.inductiveautomation.com/display/DOC81/system.report.executeAndDistribute)
- [system.report.executeReport](https://docs.inductiveautomation.com/display/DOC81/system.report.executeReport)

* * *

So it looks like Perspective is excluded from automatically writing tag writes via script?  
I'll write my own wrapper function and replace all usages of tag.write\* with my own for now, but it'd be great to get this resolved in the product itself.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 15, 2022, 12:57pm UTC](https://forum.inductiveautomation.com/t/audit-logging-of-system-tag-write-functions-explicitly-excluded-from-perspective/57184/2 "2022-03-15T12:57:55Z")

</div>

Do these log when run from the gateway context? EDIT: Meaning, not explicitly excluded from perspective, just a byproduct of running from the gateway context?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 15, 2022, 1:04pm UTC](https://forum.inductiveautomation.com/t/audit-logging-of-system-tag-write-functions-explicitly-excluded-from-perspective/57184/3 "2022-03-15T13:04:56Z")

</div>

> [@JordanCClark](#):
>
> Meaning, not explicitly excluded from perspective, just a byproduct of running from the gateway context?

I'm pretty sure this is all that's going on - nothing is explicitly _excluded_ from Perspective, but there are different code paths for things that executed as a result of a call from Vision Client and from Gateway context, and Perspective audit support needs to be added to all these different places.

---

<div class="post-metadata">

**Author:** ![nathan.boeger](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nathan.boeger/32/87646_2.png) [@nathan.boeger](https://forum.inductiveautomation.com/u/nathan.boeger)\
**Post date:** [March 15, 2022, 3:06pm UTC](https://forum.inductiveautomation.com/t/audit-logging-of-system-tag-write-functions-explicitly-excluded-from-perspective/57184/4 "2022-03-15T15:06:49Z")

</div>

Kevin H gave this a bump in our internal ticketing system. I did the same on behalf of our AUS distributor and brought it to the attention of Sales Engineering leadership.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 15, 2022, 11:06pm UTC](https://forum.inductiveautomation.com/t/audit-logging-of-system-tag-write-functions-explicitly-excluded-from-perspective/57184/5 "2022-03-15T23:06:27Z")

</div>

“explicitly excluded” was more relating to how it read in the user manual but it also sounded more attention grabbing than “not included” which I had before as I feel this is an important feature that’s missing, especially for customers who might use the audit log in critical ways. I understand from a programming Perspective (pun intended) that it was probably just missed, but great to see that it’s gained traction in short time!

PS. I’ve edited my words in the OP which were written “in the heat of the moment”, as they say 😳
