# Tag History Splitter and Datasource History Provider by scripting

**URL:** <https://forum.inductiveautomation.com/t/tag-history-splitter-and-datasource-history-provider-by-scripting/94072>\
**Category:** Ignition\
**Created:** [August 1, 2024, 5:30pm UTC](https://forum.inductiveautomation.com/t/tag-history-splitter-and-datasource-history-provider-by-scripting/94072 "2024-08-01T17:30:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge\_Dalzotto](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jorge\_Dalzotto](https://forum.inductiveautomation.com/u/Jorge_Dalzotto)\
**Post date:** [August 1, 2024, 5:30pm UTC](https://forum.inductiveautomation.com/t/tag-history-splitter-and-datasource-history-provider-by-scripting/94072/1 "2024-08-01T17:30:15Z")

</div>

hi, the question it simple...  
Is possible to create, edit and remove a "Tag History Splitter" by scripting? how?  
Is possible edit a "Datasource History Provider" by scripting? how?  
Thk

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [August 1, 2024, 7:42pm UTC](https://forum.inductiveautomation.com/t/tag-history-splitter-and-datasource-history-provider-by-scripting/94072/2 "2024-08-01T19:42:29Z")

</div>

Maybe. You'd be getting into SDK/Module development territory. I wouldn't recommend it.

I don't know the solution, but if there were one, it would probably use the [GatewayTagHistoryManager](https://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.0-beta/com/inductiveautomation/ignition/gateway/sqltags/history/GatewayTagHistoryManager.html) received from a [GatewayContext](https://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.0-beta/com/inductiveautomation/ignition/gateway/model/GatewayContext.html). Not simple or easy; and lots of opportunity to mess up your gateway. [Search](https://forum.inductiveautomation.com/search?q=GatewayContext) for GatewayContext in the forum for examples on how to get started.

Before you start, however. I'd ask why? What makes you want to use scripting to do this?

---

<div class="post-metadata">

**Author:** ![Jorge\_Dalzotto](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jorge\_Dalzotto](https://forum.inductiveautomation.com/u/Jorge_Dalzotto)\
**Post date:** [August 5, 2024, 5:02pm UTC](https://forum.inductiveautomation.com/t/tag-history-splitter-and-datasource-history-provider-by-scripting/94072/3 "2024-08-05T17:02:36Z")

</div>

Because I have many systems already implemented and I would a method for operators can to be changes in Its configuration quickly and errorless as part of a update system.

---

<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:** [August 5, 2024, 5:08pm UTC](https://forum.inductiveautomation.com/t/tag-history-splitter-and-datasource-history-provider-by-scripting/94072/4 "2024-08-05T17:08:17Z")

</div>

Management like this isn't really possible/supported in 8.1, but will be possible in Ignition 8.3; expected release early-ish next year.

---

<div class="post-metadata">

**Author:** ![Jorge\_Dalzotto](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jorge\_Dalzotto](https://forum.inductiveautomation.com/u/Jorge_Dalzotto)\
**Post date:** [August 6, 2024, 5:40pm UTC](https://forum.inductiveautomation.com/t/tag-history-splitter-and-datasource-history-provider-by-scripting/94072/5 "2024-08-06T17:40:32Z")

</div>

Ok Griffith, thank for the info.  
For the moment, I found a method. I insert/update in Ignition Internal databases register in the configuration tables (TAGHISTORYPROVIDEREP, TAGHISTORYSPLITTERSETTINGS) with necesary data. Still I have to make some test, but, It seems work.

---

<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:** [August 6, 2024, 5:44pm UTC](https://forum.inductiveautomation.com/t/tag-history-splitter-and-datasource-history-provider-by-scripting/94072/6 "2024-08-06T17:44:37Z")

</div>

> [@paul-griffith](#):
>
> expected release between the end of the year and the beginning of next year.

Hmm. That's awfully precise. What time zone?

🤣
