# Question about alarm journal vs tag history

**URL:** <https://forum.inductiveautomation.com/t/question-about-alarm-journal-vs-tag-history/89006>\
**Category:** Ignition\
**Created:** [April 17, 2024, 7:37pm UTC](https://forum.inductiveautomation.com/t/question-about-alarm-journal-vs-tag-history/89006 "2024-04-17T19:37:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtrimbleS](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jtrimbleS](https://forum.inductiveautomation.com/u/jtrimbleS)\
**Post date:** [April 17, 2024, 7:37pm UTC](https://forum.inductiveautomation.com/t/question-about-alarm-journal-vs-tag-history/89006/1 "2024-04-17T19:37:02Z")

</div>

Does History need to be enabled on tags with alarms for them to appear in the Alarm Journal? I have an alarm journal created on the gateway and it is pointed to the SQL database I created, but no alarms are appearing. It looks like at one point tables were created in the database, but they are all empty.

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [April 17, 2024, 8:01pm UTC](https://forum.inductiveautomation.com/t/question-about-alarm-journal-vs-tag-history/89006/2 "2024-04-17T20:01:28Z")

</div>

No, Tag History is separate from Alarming (and associated storing of alarm events via Alarm Journal). You can configure _Data Filters_ in the [Alarm Journal Properties](https://docs.inductiveautomation.com/docs/8.1/platform/alarming/alarm-journal#journal-properties) to control which Alarms are stored to the journal--by default, alarm events of priority `Low` and higher should be stored. Is the _Database Connection_ associated with your Alarm Journal healthy/valid?

---

<div class="post-metadata">

**Author:** ![jtrimbleS](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jtrimbleS](https://forum.inductiveautomation.com/u/jtrimbleS)\
**Post date:** [April 17, 2024, 8:26pm UTC](https://forum.inductiveautomation.com/t/question-about-alarm-journal-vs-tag-history/89006/3 "2024-04-17T20:26:04Z")

</div>

Yes, the database connection shows valid. I am not well versed in SQL, so I may have a configuration issue on that end. Here are a few screenshots from the gateway.

 ![Database Connections](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/9/09c36ebc80b311f57a8510c81bbd472c7f9752e9.png)  
 ![SQL Database Connection Config](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0f564e3a0206240dafc6b1130dbdd4aafc482d7d.png)  
 ![SQL Queries](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/415dd7f8f3f2423cf79df7c89c917f78dfd4936a.png)

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [April 17, 2024, 8:30pm UTC](https://forum.inductiveautomation.com/t/question-about-alarm-journal-vs-tag-history/89006/4 "2024-04-17T20:30:49Z")

</div>

It looks like there was an insert into the `alarm_events` table (as well as pruning of old data based on your _Alarm Journal_ configuration in the gateway) a short while ago:

 ![SCR-20240417-nrql](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/2/42577e3dab37e99c915efe829488652afb78eb59.jpeg)

How are you verifying that no data is ending up in the table? A query against `alarm_events` and/or `alarm_event_data` tables returning 0 rows?

---

<div class="post-metadata">

**Author:** ![jtrimbleS](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jtrimbleS](https://forum.inductiveautomation.com/u/jtrimbleS)\
**Post date:** [April 17, 2024, 8:58pm UTC](https://forum.inductiveautomation.com/t/question-about-alarm-journal-vs-tag-history/89006/5 "2024-04-17T20:58:52Z")

</div>

I had just opened the various tables through SQL Server Management Studio, but I am guessing now, that doesn't do what I thought it did (like I said, not familiar enough with SQL yet). I created a Query and tested it and it looks like data is there.

---

<div class="post-metadata">

**Author:** ![jtrimbleS](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jtrimbleS](https://forum.inductiveautomation.com/u/jtrimbleS)\
**Post date:** [April 17, 2024, 9:00pm UTC](https://forum.inductiveautomation.com/t/question-about-alarm-journal-vs-tag-history/89006/6 "2024-04-17T21:00:23Z")

</div>

The alarm journal issue was because I had not assigned any start and end dates for the data. I had assumed there was a default and didn't need to assign anything right away. Thank you for your help.
