# Alarm Journal vision

**URL:** <https://forum.inductiveautomation.com/t/alarm-journal-vision/41026>\
**Category:** Ignition\
**Created:** [November 28, 2020, 12:18am UTC](https://forum.inductiveautomation.com/t/alarm-journal-vision/41026 "2020-11-28T00:18:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![santoshb189](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@santoshb189](https://forum.inductiveautomation.com/u/santoshb189)\
**Post date:** [November 28, 2020, 12:18am UTC](https://forum.inductiveautomation.com/t/alarm-journal-vision/41026/1 "2020-11-28T00:18:36Z")

</div>

I am trying to see alarms in the journal component for the past 4 hours, but I see that this option is available in perspective component. I do not see this option in vision component. Can anyone help me Where can i find this?

---

<div class="post-metadata">

**Author:** ![rpavlicek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rpavlicek/32/55868_2.png) [@rpavlicek](https://forum.inductiveautomation.com/u/rpavlicek)\
**Post date:** [November 28, 2020, 12:58am UTC](https://forum.inductiveautomation.com/t/alarm-journal-vision/41026/2 "2020-11-28T00:58:30Z")

</div>

The Alarm Journal in vision has the start and end date range properties you can put a binding on. What you can do for the last so many hours or any time frame is put an expression binding on the end date with now() with a poll rate in milliseconds in the parenthesis, then in the start date you put something like:  
`addHours({Root Container.Alarm journal.enddate}, ` `-4` `)`

---

<div class="post-metadata">

**Author:** ![santoshb189](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@santoshb189](https://forum.inductiveautomation.com/u/santoshb189)\
**Post date:** [November 28, 2020, 5:15pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-vision/41026/3 "2020-11-28T17:15:31Z")

</div>

Thanks, this worked. I was doing directly subtraction of hours instead of using add hours.
