# Audit Log - not recording tag writes from some scripts

**URL:** <https://forum.inductiveautomation.com/t/audit-log-not-recording-tag-writes-from-some-scripts/64132>\
**Category:** Ignition\
**Tags:** vision, perspective\
**Created:** [September 15, 2022, 6:55pm UTC](https://forum.inductiveautomation.com/t/audit-log-not-recording-tag-writes-from-some-scripts/64132 "2022-09-15T18:55:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arun1/32/79753_2.png) [@arun1](https://forum.inductiveautomation.com/u/arun1)\
**Post date:** [September 15, 2022, 6:55pm UTC](https://forum.inductiveautomation.com/t/audit-log-not-recording-tag-writes-from-some-scripts/64132/1 "2022-09-15T18:55:32Z")

</div>

Ignition 8.1.18 adds the feature of recording tag writes by Perspective scripts but it is only doing it for “system.tag.writeBlocking” but not for “system.tag.write” ( _← this is a typo, I meant “system.tag. **writeAsync** ”, second half of @paul-griffith 's answer has some valuable insight_). Manual mentions “not limited to” but my testing shows otherwise. I am using 8.1.20.  
On the other hand, both will be recorded when used in Vision! Why the difference? (at least as per manual, haven’t tested it for Vision)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/e/ceb727d86c630a26034e84742e6f97c7b1a0553a.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/5/053a3ccd45bed1a38bf53183251f78f155677b99.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 15, 2022, 7:05pm UTC](https://forum.inductiveautomation.com/t/audit-log-not-recording-tag-writes-from-some-scripts/64132/2 "2022-09-15T19:05:07Z")

</div>

The simplest answer is probably correct: `system.tag.write` is officially deprecated, so we didn’t expect anyone to be using it in a new Perspective project, and so it was missed by our testing effort.

For some background as to _why_:  
In Vision, _all_ tag writes have to go through a coordinated system to get to the ‘backend’.  
In Perspective, scripts are executing directly on the gateway, so they can directly reach the tag system. Auditing happens at the script function, _not_ the tag system level, for some complicated internal reasons.

---

<div class="post-metadata">

**Author:** ![arun1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arun1/32/79753_2.png) [@arun1](https://forum.inductiveautomation.com/u/arun1)\
**Post date:** [September 15, 2022, 7:14pm UTC](https://forum.inductiveautomation.com/t/audit-log-not-recording-tag-writes-from-some-scripts/64132/3 "2022-09-15T19:14:59Z")

</div>

> [@arun1](#):
>
> but not for “system.tag.write”.

oops I have a typo in my msg, I meant "but not for system.tag. **writeAsync**", sorry about the confusion. Does this change your answer? Is system.tag. **writeAsync** supposed to be recorded in audit log?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 15, 2022, 8:20pm UTC](https://forum.inductiveautomation.com/t/audit-log-not-recording-tag-writes-from-some-scripts/64132/4 "2022-09-15T20:20:53Z")

</div>

That is certainly the intention, yes. Can you get in contact with support so they can take a look at your system and see if there’s anything else going on that might explain the discrepancy?

---

<div class="post-metadata">

**Author:** ![arun1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arun1/32/79753_2.png) [@arun1](https://forum.inductiveautomation.com/u/arun1)\
**Post date:** [September 15, 2022, 8:33pm UTC](https://forum.inductiveautomation.com/t/audit-log-not-recording-tag-writes-from-some-scripts/64132/5 "2022-09-15T20:33:51Z")

</div>

Will do, thanks

---

<div class="post-metadata">

**Author:** ![arun1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arun1/32/79753_2.png) [@arun1](https://forum.inductiveautomation.com/u/arun1)\
**Post date:** [September 19, 2022, 1:46pm UTC](https://forum.inductiveautomation.com/t/audit-log-not-recording-tag-writes-from-some-scripts/64132/6 "2022-09-19T13:46:39Z")

</div>

Update: after chatting with tech support, we noticed this issue occurs only with OPC tags and not with memory tags, i.e. audit log records writes from either tag write scripts (_system.tag.writeBlocking_ and _system.tag.writeAsync_) ONLY when it is a memory tag. If it happens to be an OPC tag then audit tag only records writes by _system.tag.writeBlocking_.  
Will keep updating this post…
