# \[IGN-6344\] Frontend/Backend gateways - Perspective system.tag.write\* causing two audit entries

**URL:** <https://forum.inductiveautomation.com/t/ign-6344-frontend-backend-gateways-perspective-system-tag-write-causing-two-audit-entries/62099>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 20, 2022, 2:20am UTC](https://forum.inductiveautomation.com/t/ign-6344-frontend-backend-gateways-perspective-system-tag-write-causing-two-audit-entries/62099 "2022-07-20T02:20:21Z")\
**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:** [July 20, 2022, 2:20am UTC](https://forum.inductiveautomation.com/t/ign-6344-frontend-backend-gateways-perspective-system-tag-write-causing-two-audit-entries/62099/1 "2022-07-20T02:20:21Z")

</div>

Split Gateway architecture, Frontend and Backend.  
Recently upgraded from 8.1.5 to 8.1.18.

I’ve just noticed that calling `system.tag.write*` in Perspective, not affecting Vision (haven’t specifically checked anywhere else) is causing duplicate entries to be recorded into the audit log - the frontend row has the ACTOR and ACTOR\_HOST non-null while the backend row has these as null (makes sense).

I’m assuming that both the frontend and backend are auditing these independently: frontend handles the first call to the function and audits the call and the call is then sent to the backend which process it as well and both writes to the tag as well as adds an entry to the audit log.

Is this something that can be resolved?

Also, the backend version logs the qualified value as-a-string (unexpected/unwanted) into the ACTION\_VALUE while the frontend only logs the value (expected/wanted)

I wrote true and false sequentially from the frontend. default\_fixed is the backend tag provider name, default is the frontend name (don’t ask…):

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

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [July 20, 2022, 10:29pm UTC](https://forum.inductiveautomation.com/t/ign-6344-frontend-backend-gateways-perspective-system-tag-write-causing-two-audit-entries/62099/2 "2022-07-20T22:29:19Z")

</div>

An issue started in 8.1.18 where audit logs were getting records that shouldn’t be there when using `system.tag` functions via Gateway events. A fix for this is currently in 8.1.19-RC2 and I am pretty confident it will resolve your issue.

Garth

---

<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:** [July 22, 2022, 10:29am UTC](https://forum.inductiveautomation.com/t/ign-6344-frontend-backend-gateways-perspective-system-tag-write-causing-two-audit-entries/62099/3 "2022-07-22T10:29:37Z")

</div>

@ggross I'm seeing this as being in 8.1.20. Just verifying that it moved up to 19.

> [@Nightly 8.1 Changelogs - 2022](https://forum.inductiveautomation.com/t/nightly-8-1-changelogs-2022/54636/108):
>
> Weekly Changelog: 8.1.20-b20220718 Data Model 6344: Non-Perspective gateway-scoped tag writes and edits are being captured in the audit log Fixed an issue where scripted tag writes / modifications were being audited within gateway event scripts. Visualization 6353: Revert IGN-2280 and related regression IGN-6296 Rolled back Flex Container changes 2280 and 6296 as they caused issues with existing customer layouts

---

<div class="post-metadata">

**Author:** ![ggross](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ggross/32/12668_2.png) [@ggross](https://forum.inductiveautomation.com/u/ggross)\
**Post date:** [July 22, 2022, 4:39pm UTC](https://forum.inductiveautomation.com/t/ign-6344-frontend-backend-gateways-perspective-system-tag-write-causing-two-audit-entries/62099/4 "2022-07-22T16:39:34Z")

</div>

@JordanCClark,

Both the issues noted in that post are in 8.1.19-RC2. As things go into a release branch, we try to merge them at the same time into the primary development branch as well. Sabrina just makes note of what has been merged into the primary development branch the prior day. In this case, it also included items from the syncing of the release branch.

Garth

---

<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:** [July 22, 2022, 4:40pm UTC](https://forum.inductiveautomation.com/t/ign-6344-frontend-backend-gateways-perspective-system-tag-write-causing-two-audit-entries/62099/5 "2022-07-22T16:40:09Z")

</div>

Cool. Thanks, Garth.
