# 5 minute scan rate historic logging not logging all intervals

**URL:** <https://forum.inductiveautomation.com/t/5-minute-scan-rate-historic-logging-not-logging-all-intervals/22826>\
**Category:** Ignition\
**Created:** [February 23, 2019, 2:47am UTC](https://forum.inductiveautomation.com/t/5-minute-scan-rate-historic-logging-not-logging-all-intervals/22826 "2019-02-23T02:47:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 23, 2019, 2:47am UTC](https://forum.inductiveautomation.com/t/5-minute-scan-rate-historic-logging-not-logging-all-intervals/22826/1 "2019-02-23T02:47:16Z")

</div>

I have a simple test expression integer tag setup whose expression writes the current HHMMSS into it every second (e.g. using now(1)) as an integer value, e.g. 131042 for time 13:10:42.  
I’ve setup a scan class as below that I’ve set the Historic Scanclass to in the tag:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/c4a9a436fa15e2309494dceed7469158300d3a53.png)

While I’m seeing most 5minute intervals being logged, i’ve noticed that there are some times where this has been skipped. See the screenshot below, but ignore the values before 112037 as these were me testing. You’ll notice that the record after 120045 skips to 122045 (i.e. 3 entries are missing for 1205xx, 1210xx, and 1215xx). Why would these values have been skipped?  
Also, can I get this to synchronise to on the hour? e.g. all seconds should be 00, 120500, 121000, etc.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/aa6a3c269de504c47794f2718ee6af9face58f9b.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7a043d908740138e2f7b694dbcf076a7189cd2f0.png)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 23, 2019, 2:58pm UTC](https://forum.inductiveautomation.com/t/5-minute-scan-rate-historic-logging-not-logging-all-intervals/22826/2 "2019-02-23T14:58:04Z")

</div>

Is there anything in the gateway logs during those times that were skipped?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 23, 2019, 9:35pm UTC](https://forum.inductiveautomation.com/t/5-minute-scan-rate-historic-logging-not-logging-all-intervals/22826/3 "2019-02-23T21:35:14Z")

</div>

Hi Kevin,  
The only log in the gateway log between those times, 12:00 and 12:20 was this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1972e2deb33e5bdd39bfb77c2c0ec6a5fb6cf20d.png)  
(the server the script tried to write a file to was down at the time so the script failed)
