# How access to alarm\_events table in Default Projects

**URL:** <https://forum.inductiveautomation.com/t/how-access-to-alarm-events-table-in-default-projects/16689>\
**Category:** Ignition\
**Created:** [January 23, 2018, 8:40am UTC](https://forum.inductiveautomation.com/t/how-access-to-alarm-events-table-in-default-projects/16689 "2018-01-23T08:40:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amabito](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@amabito](https://forum.inductiveautomation.com/u/amabito)\
**Post date:** [January 23, 2018, 8:40am UTC](https://forum.inductiveautomation.com/t/how-access-to-alarm-events-table-in-default-projects/16689/1 "2018-01-23T08:40:26Z")

</div>

I have to filter the Alarm Status Table for date range.  
So I need to read the alarm\_events table that is in the Default Project, but I’m not able to access to that table from the script.

I try: event.source.getComponent(‘alarm\_events’)  
alarmEvent.get(‘alarm\_events’)  
table = system.db.alarm\_events

but none of that access to the alarm\_events table, I can’t figure where the table is in the project, so I can not read it.

---

<div class="post-metadata">

**Author:** ![zacslade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacslade/32/3587_2.png) [@zacslade](https://forum.inductiveautomation.com/u/zacslade)\
**Post date:** [August 29, 2018, 7:03pm UTC](https://forum.inductiveautomation.com/t/how-access-to-alarm-events-table-in-default-projects/16689/2 "2018-08-29T19:03:29Z")

</div>

This is a pretty late response, but maybe it will help someone else with the same question.

So, if you put an actual table onto a display in your project called “alarm\_events”, then it will only be accessible when that display is open, and it will be complicated to access it with anything that isn’t an object on the same display.

If you just want to get alarm history in general, you will have to set up an [Alarm Journal](https://docs.inductiveautomation.com/display/DOC79/Alarm+Journal). Once that’s set up, you can access it using the [Alarm Journal Table](https://docs.inductiveautomation.com/display/DOC79/Alarm+Journal+Table+Component). If you want to get alarm history in a script for some other purpose, then you can use [system.alarm.queryJournal](https://docs.inductiveautomation.com/display/DOC79/system.alarm.queryJournal).
