Event Log no recording events over a weekend

Ivan Louw asked on November 7, 2021 23:35

Hi Guys, I have a new question.

I have have some custom events I write to the event log. These show up during the week, but stop working over a weekend. Making it difficult to investigate errors after the weekend.

I know the code is being hit, because it sends an email out as well, but there is just no event information.

We are using Kentico 12 sp MVC.

Any advice on where to look will be appreciated.

Regards, Ivan

Recent Answers


Juraj Ondrus answered on November 8, 2021 05:49

Is the Kentico admin app up and running? What kind of events you mean?

0 votesVote for this answer Mark as a Correct answer

Ivan Louw answered on November 8, 2021 06:05

Hi Juraj, These are events I capture from a global events on form submit, I then send it off to a third party system. EventLogProvider.LogEvent(EventType.INFORMATION, "Sync####", "Process", "Some Message"); and yes the admin site is up and running.

regards, Ivan

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 8, 2021 06:23

OK, so the event handler is on the MVC app side right? How do you know admin app is up and running? Are there made any requests over the weekend? Isn't it possible that the events start logging as soon as somebody logs into the admin app and wakes it up? Are there any6 other errors logged in the Event log or Windows event viewer?

0 votesVote for this answer Mark as a Correct answer

Ivan Louw answered on November 15, 2021 01:38

Hi Juraj, Sorry for not getting back to you sooner. Got bogged down in another project.

We have noticed that some task are not executing over a weekend and have implemented an external service to remedy the situation, but the no events are not being captured over a weekend. Is there a way to keep the site a live without having someone logging into admin?

I now some other services and and contact syncing to the CRM system is mad from the custom api and global events over the weekend.

Regards, Ivan

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 15, 2021 05:21

You can either use the Windows scheduler service to execute scheduled tasks even if the Kentico admin app is not running. Or, second option is to make a HTTP request to the admin logon page which would simulate someone wanting to log in - and this will either wake up the app or keep it alive.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.