Azure Monitoring for Windows Scheduled Task

%3CLINGO-SUB%20id%3D%22lingo-sub-1544689%22%20slang%3D%22en-US%22%3EAzure%20Monitoring%20for%20Windows%20Scheduled%20Task%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1544689%22%20slang%3D%22en-US%22%3E%3COL%3E%3CLI%3E%3CP%3EHow%20can%20I%20monitor%20if%20a%20Windows%20Scheduler%20Task%20is%20not%20triggered%20as%20configured%20(at%20the%20given%20time).%20Please%20suggest%20the%20steps%20to%20setup%20Azure%20Monitor%20%26amp%3B%20Scheduler%20(if%20special%20settings%20needed).%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EAlso%20I%20need%20to%20configure%20Azure%20monitoring%20for%20the%20Postgressql%20DB%20which%20is%20residing%20in%20AWS.%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1565888%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Monitoring%20for%20Windows%20Scheduled%20Task%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1565888%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F739405%22%20target%3D%22_blank%22%3E%40KranthiGurajapu%3C%2FA%3E%26nbsp%3Bwhat%20about%20if%20you%20se%20Log%20Analytics%20to%20look%20for%20the%20Windows%20Event%20Log%20entry%3F%20You%20could%20then%20create%20an%20alert%20of%20the%20resulting%20query.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1565928%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Monitoring%20for%20Windows%20Scheduled%20Task%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1565928%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F749425%22%20target%3D%22_blank%22%3E%40MrCoups%3C%2FA%3E%26nbsp%3B%2C%20thanks%20for%20the%20response.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20I%20did%20try%20that%20with%20no%20luck.%20Did%20ran%20a%20Task%20and%20it%20ran%20to%20success%2C%20but%20I%20didn't%20see%20any%20details%20of%20the%20task%20in%20the%20Log%20Viewer.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1565937%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Monitoring%20for%20Windows%20Scheduled%20Task%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1565937%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F739405%22%20target%3D%22_blank%22%3E%40KranthiGurajapu%3C%2FA%3E%26nbsp%3BThe%26nbsp%3B%3CSPAN%3EMicrosoft-Windows-TaskScheduler%20log%20provides%20information%20on%20scheduled%20task%20execution%2C%20you%20can%20also%20look%20in%20the%20following%20log%20file%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%3EC%3A%5CWindows%5CTasks%5CSchedLgU.txt%3C%2FPRE%3E%3CP%3EThis%20should%20help%20you%20out%2C%20you%20can%20also%20monitor%20log%20files%20through%20Log%20Analytics%20as%20well.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor
  1. How can I monitor if a Windows Scheduler Task is not triggered as configured (at the given time). Please suggest the steps to setup Azure Monitor & Scheduler (if special settings needed).

  2. Also I need to configure Azure monitoring for the Postgressql DB which is residing in AWS.

3 Replies

@KranthiGurajapu what about if you se Log Analytics to look for the Windows Event Log entry? You could then create an alert of the resulting query.

@MrCoups , thanks for the response.

 

Yes I did try that with no luck. Did ran a Task and it ran to success, but I didn't see any details of the task in the Log Viewer.

@KranthiGurajapu The Microsoft-Windows-TaskScheduler log provides information on scheduled task execution, you can also look in the following log file

C:\Windows\Tasks\SchedLgU.txt

This should help you out, you can also monitor log files through Log Analytics as well.