# 100 tags from history into daily data log file

**URL:** <https://forum.inductiveautomation.com/t/100-tags-from-history-into-daily-data-log-file/108524>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [July 15, 2025, 8:54pm UTC](https://forum.inductiveautomation.com/t/100-tags-from-history-into-daily-data-log-file/108524 "2025-07-15T20:54:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiim](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tiim](https://forum.inductiveautomation.com/u/tiim)\
**Post date:** [July 15, 2025, 8:54pm UTC](https://forum.inductiveautomation.com/t/100-tags-from-history-into-daily-data-log-file/108524/1 "2025-07-15T20:54:42Z")

</div>

Hello once again!

I have a new one. My customer wants about 100 tags to be recorded into a .csv file, every hour, once each day.

I have already set up the tag historian into MariaDB.

I also have the reporting module, and logically thought that was the way to go.

My issues are, I can't put the volume of tags onto a report table (or can i?).

I set up the report DataSource with all the tags and unique key aliases, but I am struggling with "Table" or "Simple Table" components in the designer. I can add columns, but 100?

Is there another way, other than the reporting module, or is there another approach WITH the reporting module? I am so very close to having automated .csv logged data.

I ran a small data-set as a test with the report module, and the scheduling/saving to file works perfect.

Thanks,

Tim

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [July 15, 2025, 9:06pm UTC](https://forum.inductiveautomation.com/t/100-tags-from-history-into-daily-data-log-file/108524/2 "2025-07-15T21:06:18Z")

</div>

Don't use the reporting module for this, unless you need graphics to go with the data.

If you are aiming for just straight CSV data export, use a gateway scheduled script, and in there make a call to [`system.tag.queryTagHistory`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-queryTagHistory) to pull the data for all the tags that you need. Then, convert the returned dataset to a csv using [`system.dataset.exportCSV`](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-dataset/system-dataset-exportCSV).

For best results, create a [project library script](https://www.docs.inductiveautomation.com/docs/8.1/platform/scripting/scripting-in-ignition/project-library#add-a-script), and define the tags to read, as well as all the logic to fetch/convert and export in a function in this library, and call that function from the scheduled gateway script.

---

<div class="post-metadata">

**Author:** ![tiim](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tiim](https://forum.inductiveautomation.com/u/tiim)\
**Post date:** [July 15, 2025, 9:53pm UTC](https://forum.inductiveautomation.com/t/100-tags-from-history-into-daily-data-log-file/108524/3 "2025-07-15T21:53:41Z")

</div>

Hi Ryan, thanks for your response.

It looks like there is a steep learning curve for this task. I hoped for something easier to follow.

I might just use the report and break the data into smaller chunks, as my customer is one of those do it yesterday types. Maybe I can figure out the scripting after a while.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [July 15, 2025, 10:01pm UTC](https://forum.inductiveautomation.com/t/100-tags-from-history-into-daily-data-log-file/108524/4 "2025-07-15T22:01:07Z")

</div>

It really isn't too bad going with Ryan's approach both of the functions are well documented, with examples.

---

<div class="post-metadata">

**Author:** ![robertm](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@robertm](https://forum.inductiveautomation.com/u/robertm)\
**Post date:** [July 15, 2025, 10:13pm UTC](https://forum.inductiveautomation.com/t/100-tags-from-history-into-daily-data-log-file/108524/5 "2025-07-15T22:13:28Z")

</div>

Honestly, everything in Ignition is a steeper than normal learning curve for me. But there are enough resources from tutorials, docs, forum posts, expert members, that a little trial and error and a little time, you will learn another skill and have a new example for your tool kit of solutions. Then those compound and it gets easier next time.

---

<div class="post-metadata">

**Author:** ![tiim](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tiim](https://forum.inductiveautomation.com/u/tiim)\
**Post date:** [July 15, 2025, 10:33pm UTC](https://forum.inductiveautomation.com/t/100-tags-from-history-into-daily-data-log-file/108524/6 "2025-07-15T22:33:41Z")

</div>

I understand that, and I will be hopefully getting a second project, where I can refine things I have learned into simpler tasks, such as this one.

I will get my three log files working neatly, using the reporting module. I don't need to see the data as a PDF, just a .csv

I will also create a handful of actual reports. Once the customer is happy, I will have time to learn the script approach, for my next project!

Thanks for all your responses. I am half way done with datalog files!

Tim
