# Pull Alarm History of Tag Path via Script Console

**URL:** <https://forum.inductiveautomation.com/t/pull-alarm-history-of-tag-path-via-script-console/63643>\
**Category:** Ignition\
**Created:** [August 31, 2022, 4:22pm UTC](https://forum.inductiveautomation.com/t/pull-alarm-history-of-tag-path-via-script-console/63643 "2022-08-31T16:22:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaspinall](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jaspinall](https://forum.inductiveautomation.com/u/jaspinall)\
**Post date:** [August 31, 2022, 4:22pm UTC](https://forum.inductiveautomation.com/t/pull-alarm-history-of-tag-path-via-script-console/63643/1 "2022-08-31T16:22:45Z")

</div>

Hello There,

Is there anyway to pull the alarm history (i.e something like an array of ActiveTime’s) for a given tag path?

Similar to system.tag.read(/x/x/x/x/x/Alarms.LastActiveTime)

Thanks

---

<div class="post-metadata">

**Author:** ![Paul\_Verbovshchuk](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@Paul\_Verbovshchuk](https://forum.inductiveautomation.com/u/Paul_Verbovshchuk)\
**Post date:** [August 31, 2022, 5:32pm UTC](https://forum.inductiveautomation.com/t/pull-alarm-history-of-tag-path-via-script-console/63643/2 "2022-08-31T17:32:19Z")

</div>

You may use the system.alarm.queryJournal function to accomplish what you’re looking for.

For example,  
system.alarm.queryJournal(startDate, endDate, journalName, source = “Folder/TagPath”)  
You can use the getDataset() on the result to convert to a dataset, and then access the EventTime column to find the times at which the events occcurred.

[https://docs.inductiveautomation.com/display/DOC80/system.alarm.queryJournal](https://docs.inductiveautomation.com/display/DOC80/system.alarm.queryJournal)
