# Tag Historian from Remote Tag Provider tags

**URL:** <https://forum.inductiveautomation.com/t/tag-historian-from-remote-tag-provider-tags/102466>\
**Category:** Ignition\
**Tags:** scripting, ignition81\
**Created:** [February 18, 2025, 7:46am UTC](https://forum.inductiveautomation.com/t/tag-historian-from-remote-tag-provider-tags/102466 "2025-02-18T07:46:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matti.merilainen](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@matti.merilainen](https://forum.inductiveautomation.com/u/matti.merilainen)\
**Post date:** [February 18, 2025, 7:46am UTC](https://forum.inductiveautomation.com/t/tag-historian-from-remote-tag-provider-tags/102466/1 "2025-02-18T07:46:38Z")

</div>

Hi!  
We have 2 gateways "main" and "edge". Main has Remote Tag Provider configured, so we can see and modify tags in remote edge server. This edge has tag history configured and it has Tag Historian module running. Main one does not have this module. When I try run [system.tag.queryTagHistory](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-queryTagHistory) function on main, it does not return anything. If I activate trial on main it starts to work. Do I need Tag Historian in both servers for this to work or should I change configurations a bit or something?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 18, 2025, 1:22pm UTC](https://forum.inductiveautomation.com/t/tag-historian-from-remote-tag-provider-tags/102466/2 "2025-02-18T13:22:33Z")

</div>

> [@matti.merilainen](#):
>
> Tag Historian in both servers for this to work

Yes.

---

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [February 18, 2025, 1:26pm UTC](https://forum.inductiveautomation.com/t/tag-historian-from-remote-tag-provider-tags/102466/3 "2025-02-18T13:26:23Z")

</div>

yes!  
tag historian is a two part functionality: storage and retrieval. you need tag historian where you have storage (at the edge) and where you consume (main). This has changed in 8.1, see [8.0 to 8.1 Upgrade Guide | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/getting-started/installing-and-upgrading/ignition-8-upgrade-guide/80to81-upgrade-guide)
